The Repeat...Until statement repeats the statements included in the loop until the condition is True.
Used to to repeat the same steps.
<boolean_expression>, boolean. The result of the expression must be True or False.
<statements> are executed until the expression is True.
If PAUSE n SECS or PAUSE n TICKS is the last line before UNTIL, use EndPause function to close this Pause block, or the Compiler will return a compilation error.
a = 0
a = a + 1
Pause 300 ticks 'Same as Pause 3 secs
EndPause 'EndPause is needed to avoid a Pause line just above an Until line
Until a = 5