7 Instructions
REPEAT instruction
The REPEAT instruction causes a group of instructions up to the keyword UNTIL to be repeatedly exe-
cuted until the associated Boolean condition is true (TRUE).
Keywords:
REPEAT, UNTIL, END_REPEAT
Example:
REPEAT
i := i - 2;
a := a + 2.0;
UNTIL i = 0 END_REPEAT;
EXIT
With EXIT, a repeat instruction is terminated before the end condition of the iteration is fulfilled. If EXIT
is executed within a nested repetition construct, the innermost loop is exited within the EXIT.
NOTE!
For repeat instructions, you must ensure that there are no endless loops or very long running loops. The
runtime is monitored.
34