REPEAT … UNTIL

Repetetive execution of statements - REPEAT … UNTIL.

Syntax:

REPEAT

loop code

UNTIL(condition)

Loops between the two 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)