Repeat Command

From GeoGebra Manual
Revision as of 09:06, 12 October 2017 by Mathmum (talk | contribs) (command syntax: changed [ ] into ( ))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Repeat( <Number>, <Scripting Command>, <Scripting Command>, ... )
Repeats the execution of scripting commands n times, where n is the given Number.
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.
© 2021 International GeoGebra Institute