| REPEAT | |
| Syntax | REPEAT number list |
| Explanation | REPEAT runs the list of instructions in the second input the number of times indicated by its first input. The number input to REPEAT can be any positive integer greater than 0. If the number is not an integer, its fractional portion is ignored. REPEAT commands can be nested, or placed inside other REPEAT commands. See also FOR. |
| Examples | REPEAT 5 [PRINT [I WILL NOT BITE MY NAILS]] I WILL NOT BITE MY NAILS I WILL NOT BITE MY NAILS I WILL NOT BITE MY NAILS I WILL NOT BITE MY NAILS I WILL NOT BITE MY NAILS TO HEXDESIGN REPEAT 12 [REPEAT 6 [FD 40 LT 60] RT 30] END HEXDESIGN defined HEXDESIGN
|