Execute Command
The Execute command works only if the commands in the list are written in English (US), regardless the language chosen for your GeoGebra interface. |
- Execute( <List of Texts> )
-
Executes a list of commands entered as texts.
-
Execute({"A=(1,1)","B=(3,3)","C = Midpoint(A, B)"})
creates points A, B and their midpoint C. -
Execute(Join({"f_{1} = 1", "f_{2} = 1"}, Sequence("f_{"+(i + 2) + "} = f_{" + (i+1) + "} + f_{"+ i +"}", i, 1, 10)))
creates the first 10 elements of the Fibonacci sequence.
- Execute( <List of Texts>, <Parameter>, … , <Parameter> )
-
Use the placeholders %1, %2 and so on as arguments of the commands in the list. The placeholders will be respectively replaced with the parameters used in the Execute command. Up to 9 parameters can be specified. After the replacement, the resulting scripts will be executed.
Execute({"Segment(%1,%2)","Midpoint(%1,%2)"}, A, B)
creates the segment AB and its midpoint.
If the quote symbol ( |