EasyManua.ls Logo

NUM 1020 - REPEAT until Loops

Default Icon
146 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)

Table of Contents

Related product manuals