Syntax:
#while EXPR #end while
#while is the same as Python's while statement.  It may be
followed by any boolean expression:
#while $someCondition('arg1', $arg2)
The condition is true.
#end while
Be careful not to create an infinite loop.  #while 1 will loop until
the computer runs out of memory.