|Syntax||(enumWhile list condition itemVar exp) -> value of last expression|
|Argument List||list: A list of elements you want to walk through.
condition: Stops enum if condition is Nil.
itemVar: Name of the variable that will be used to hold the current element you are at in the enum. Does not need to be defined beforehand.
exp: The expression you want to evaluate for each element in the list. The element will be available inside the expression under the name you used in `itemVar'.
|Returns||Whatever the last expression evaluated inside returns.|
|Description||A function allowing you to evaluate an expression using the variable to store the element you are at for every element in a list unless condition is Nil.|
(block (condition) (setq condition True) (enumwhile '(a b c d) condition theElement (block Nil (if (eq theElement 'b) (setq condition Nil)) (dbgOutput theElement) ) ) )
This will display on the debug console.
|Comment||Basically a enum with an if inside of it.|
|Mod of the Month (February '17)|
|[Pre-Alpha] Oracus and Domina I: The March of the Heretic|
|Transcendence 1.7 XML _Source|
|Balanced Mods (random)|
|Northwind Devices for Transcendence 1.1 beta (1.08b minimum)|