04-19-2009, 04:44 PM
Straight from the help file.
Syntax
rep [n]
(tab) statement
(tab) ...
...
Can be single line:
rep([n]) statement ...
Parts
n - number of times to repeat.
statements - one or more statements (commands).
Remarks
Repeatedly executes statements n times. If n is omitted, executes forever.
Use break to exit loop. Use continue to skip following statements.
rep can be in other block (if, rep, ...).
See also : for, foreach.
Examples
Macro
Macro
Syntax
rep [n]
(tab) statement
(tab) ...
...
Can be single line:
rep([n]) statement ...
Parts
n - number of times to repeat.
statements - one or more statements (commands).
Remarks
Repeatedly executes statements n times. If n is omitted, executes forever.
Use break to exit loop. Use continue to skip following statements.
rep can be in other block (if, rep, ...).
See also : for, foreach.
Examples
Macro
Macro