Repeat Command
From GeoGebra Manual
Revision as of 00:03, 15 March 2015 by Noel Lambert (talk | contribs) (Created page with "<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|scripting}} ;Repeat[ <Number>, <Scripting Command>, <Scripting Command>, ... ] :executes the given number of ti...")
- Repeat[ <Number>, <Scripting Command>, <Scripting Command>, ... ]
- executes the given number of times the listed commands.
- Example:
Turtle[]
.- Click on "play" button at bottom.
Repeat[8, TurtleForward[turtle1, 1], TurtleRight[ turtle1, 45° ]]
- turtle moves by drawing a regular octagon.