Difference between revisions of "Repeat Command"
From GeoGebra Manual
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...") |
|||
Line 2: | Line 2: | ||
{{command|scripting}} | {{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''. |
:{{Example|1=<br/> | :{{Example|1=<br/> | ||
::<code>Turtle[]</code>.<br/> | ::<code>Turtle[]</code>.<br/> | ||
− | ::Click | + | ::Click the [[File:Animate_Play.png]] "Play" button displayed at bottom left.<br/> |
::<code> Repeat[8, TurtleForward[turtle1, 1], TurtleRight[ turtle1, 45° ]]</code><br/> | ::<code> Repeat[8, TurtleForward[turtle1, 1], TurtleRight[ turtle1, 45° ]]</code><br/> | ||
− | ::turtle moves | + | ::The turtle moves and draws a regular octagon. |
}} | }} |
Revision as of 17:33, 15 March 2015
- Repeat[ <Number>, <Scripting Command>, <Scripting Command>, ... ]
- Repeats the execution of scripting commands n times, where n is the given Number.