Repetetive execution of statements in a custom function, controlled by condition at end of loop.
Syntax:
REPEAT
loop code
UNTIL(condition)
Loops executing statements between the REPEAT
and UNTIL
statements until the condition is TRUE
.
Note that the loop will always execute at least once.
Example:
REPEAT SET_VALUE(remainder, remainder - divisor) UNTIL(remainder < divisor)