DO...LOOP Statement
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
DO [{WHILE | UNTIL} condition]
[statementblock]
[EXIT DO]
[statementblock]
LOOP
■ condition A numeric expression that BASIC evaluates as true
(nonzero) or false (zero).
■ EXIT DO An alternative exit from a DO...LOOP. Transfers
control to the statement following LOOP.
■ The program lines between the DO and LOOP statements are repeated
while a condition is true or until a condition becomes true.
■ See Details for alternate syntax.
See Also ◄WHILE...WEND► ◄FOR...NEXT►