From EDukeWiki
(Redirected from Whilevarvarl)
Jump to navigation Jump to search

whilel <gamevar <value | gamevar> {code to execute}

whilevarl <gamevar> <value> { code to execute }

whilevarvarl <gamevar> <gamevar> { code to execute }

Executes the code in the curly braces as long as <gamevar> is less than <value>. This is a simple while loop.

Caution: Poor execution or endless loops will cause your game to close without error or simply stall and crash!

Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.