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
Example
Dim A As Byte
While A <= 10
Print A
Incr A
Wend