WHILE These commands will define a loop that will repeat while the Condition is true.
Syntax
    WHILE Condition
Parameters
    Condition
Value Enter the appropriate value here.
Returns
This command does not return a value.
Description
Unlike the REPEAT command, the while command ensures the Condition is true before entering the loop. You are able to break from the loop at any time by using the EXIT command.
Example Code
    WHILE SPACEKEY()=0

    PRINT "press space"

    ENDWHILE
See also
CORE Commands Menu Index