Difference between revisions of "Repeat Command"

From GeoGebra Manual
Jump to: navigation, search
m
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
;Repeat[ <Number>, <Scripting Command>, <Scripting Command>, ... ]
+
;Repeat( <Number>, <Scripting Command>, <Scripting Command>, ... )
 
:Repeats the execution of scripting commands ''n'' times, where ''n'' is the given ''Number''.
 
:Repeats the execution of scripting commands ''n'' times, where ''n'' is the given ''Number''.
  

Revision as of 17:16, 7 October 2017


Repeat( <Number>, <Scripting Command>, <Scripting Command>, ... )
Repeats the execution of scripting commands n times, where n is the given Number.
Example:
Turtle[].
Click the Animate Play.png "Play" button displayed at bottom left.
Repeat[8, TurtleForward[turtle1, 1], TurtleRight[ turtle1, 45° ]]
The turtle moves and draws a regular octagon.
© 2024 International GeoGebra Institute