Conditional and Looping: while

Use while to implement a conditional loop.

syntax:

(while (conditional expression)
    code block 1
)

code block 1 is continually executed until conditional expression evaluates to be FALSE (zero).

Example using the while statement

(= GAME_RUNNING TRUE)
(
while(GAME_RUNNING)
  (
self:doit())
)

see also: do while, for, break