Programming Reference / Program / Repeat Loop


The blocks inserted within the boundaries of the Repeat Loop instruction will execute in order and repeat at the beginning. The number of loops that the block and all blocks within are executed depends on the value entered for the operand A. If operand A is less than zero, the loop will not execute.

Operand A can also be a variable. The value of the variable will be checked against the iteration counter at the beginning of every iteration. If the value of the variable is more than the iteration counter, the blocks in the loop will execute. If the value of the variable is less than or equal to the iteration counter, the loop will stop repeating.