HTBasic Help
×
Menu
Index

REPEAT ... UNTIL

Defines a loop that is repeated UNTIL a condition is satisfied.
 
 REPEAT
statements
UNTIL numeric-expression
 
 
 
Usage:
770 REPEAT
780   CALL Test(X)
790   X=X+Next
800 UNTIL X=Last
Description:
The statements between the REPEAT and UNTIL are first executed. When the UNTIL statement is reached, the expression is evaluated. If the expression is false (zero), the statements between the REPEAT and UNTIL are executed again. If the expression is true (non-zero), execution continues with the statement following the UNTIL.
See Also: