repeat to

control structure

Syntax
repeat to integer-expression
   actions
(by numeric expression)?
again


Purpose

You can repeat a set of actions a specified number of times using a repeat to loop. The loop will repeat the number of times specified by the integer expression following the to clause:

  repeat to hit-count * 3
     ...
  again

Note that there is no control variable in a repeat to loop. If you need a control variable, use a repeat for loop.

In all other respects, a repeat to loop behaves exactly like a regular repeat loop.