Maybe this is getting philosophical, but this is exactly what my code does.
(Okay, granted, exitLoop should initially be true)
-
test() is called but exits immediately via return command. (same thing as doing the if in draw() but nicer imho)
-
the loop is running, using the fact that draw() loops automatically (and calls
test()) -
when
exitLoopis true again, test() is left immediately again