Loop - Function Summary
Evaluates a block a specified number of times.
loop count block
count - Number of repetitions (must be: integer)
block - Block to evaluate (must be: block)
Repeatedly executes a block for the given number of times. When finished, the LOOP function returns the value of the final execution of the block.
The BREAK function can be used to stop the loop at any time (but no value is returned).
The REPEAT function is similar to LOOP, except that it keeps track of the current loop count with a variable.
The LOOP function is very efficient, and should be used if no loop counter is required.
break - Breaks out of a loop, while, until, repeat, foreach, etc.