User`s manual

Syntax of while statement is:
while expression
statement_0
statement_1
...
statement_N
wend
Expression is tested first. If it returns True, all the following statements enclosed
by while and wend will be executed. It will keep on executing statements until
the expression returns False.
Eventually, as expression returns False,
while will be terminated without execut-
ing statements.
While is similar to do..loop until, except the check is performed at the
beginning of the loop. If expression returns False upon first test, statements will
not be executed.
while I < 90
I = I + 1
wend
...
while I > 0
I = I div 3
PORTA = I
wend
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
96
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
While Statement
Example