HTBasic Help
×
Menu
Index

WHILE

Repeats an action while a condition is true.
 
 WHILE numeric-expression
statements
END WHILE
 
 
 
Usage:
100 WHILE X<1000
. . .
200 END WHILE
Example: WHILE.BAS
Description:
The WHILE expression is evaluated and if false (zero), execution continues with the statement following the END WHILE. If true (non-zero), then the statements in the WHILE loop are executed. When the END WHILE is reached, execution branches back to the WHILE statement where the expression is again evaluated.
See Also: