1 - 8 en-938872/2
1.2.3 REPEAT UNTIL Loops
Syntax
REPEAT
(instructions)
UNTIL (condition)
The instructions are executed repetitively until the condition becomes true.
Even if the condition is true at the beginning, the instructions are executed once.
Graph
Untilinstructions
Repeat
Example
Wait for a correct answer
REPEAT
$ EXIT FROM THE PROGRAMME (Y/N) ?
[ANSWER]= $
UNTIL [ANSWER] = 14 OR [ANSWER] = 25
The answer «Y» returns the value 25
and the answer «N» returns the value
14 (ranks of the letters Y and N in the
alphabet)