HTBasic Help
×
Menu
Index

LOOP

Defines a series of statements to be executed repeatedly.
 
 LOOP
  statements
[EXIT IF boolean-expression]
  statements
END LOOP
 
Usage:
100  LOOP
. . .
170  EXIT IF J=5 OR A$>B$
. . .
180  END LOOP
 
Example:           LOOP.BAS
 
Description:
When control reaches the END LOOP statement, it is transferred back to the statement following the LOOP statement until an EXIT IF statement evaluates non-zero. There may be any number of EXIT IF statements in the LOOP. Branching into a LOOP is legal.
 
See Also: