Loop - Function SummarySummary:Evaluates a block a specified number of times. Usage:loop count block Arguments:count - Number of repetitions (must be: integer) block - Block to evaluate (must be: block) Description: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. Related:break - Breaks out of a loop, while, until, repeat, foreach, etc.
| ||||
|