Main sections
WEND
WHILE a#$ = < <= > >= <> b#$
WEND
The WEND command signifies the end of the WHILE code block. The code in between WHILE and WEND will be executed as long as the condition on the WHILE statement is TRUE.
Sample:
i=0
WHILE i < 5
i=i+1
PRINT i, i*32, 100
WEND
SHOWSCREEN
MOUSEWAIT
Output:
1 2 3 4 5