bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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►