GLBasic User Manual

Main sections

WHILE

WHILE a%#
WEND



Loops the code in between WHILE and WEND as long as the expression of a%# is unequal 0 (or FALSE).

Sample:
 
i=0

WHILE i < 5
i=i+1
PRINT i, i*32, 100
WEND

SHOWSCREEN
MOUSEWAIT


Output:
1 2 3 4 5

See also...