Action
Executes a series
of statements in a loop, as long as a given condition is true.
Syntax
WHILE condition
statements
WEND
Remarks
If the condition is true then any intervening statements are executed
until the WEND statement is encountered.
BASCOM then returns to the WHILE statement and checks condition.
If it is still true, the process is repeated.
If it is not true, execution resumes with the statement following the
WEND statement.
See also
DO .. LOOP
Example
WHILE a <= 10
PRINT a
INC
a
WEND
|