- iteration
| Primitive | Action | |
|---|---|---|
|
Forever
[list]
Repeat n [list] DoUntil [list] [cond] DoWhile [list] [cond] While [cond] [list] |
Repeat
instructions in list forever. STOP button to cancel.
Repeat instructions in list n times. Do instructions in list until condition is true. Do instructions in list while condition is true. While condition is true, do instructions in list. |
|
|
For
[x a b s] [list]
ForEach var [list1] [list2] RepCount |
For
x from a to b, with optional step s, do instructions in list.
For each element of list 1, do instructions in list 2. Return the number of times a repeat loop has executed. |
|
|
Stop
StopAll Output xx |
Stop
and break out of procedure or loop.
Stop and break out of all procedures or loops, end program. Break out of procedure or loop with output value xx. |
|
Note