Discuss this page on this pages [[itmEnumTypes Talk Page|TalkPage]] === itmEnumTypes === See [[http://xelerus.de/index.php?s=functions&function=37|itmEnumTypes at Xelerus]] ^ Syntax | (itmEnumTypes criteria itemVar exp) -> value of last expression | ^ Arguments | criteria: The criteria an item must meet to be enumerated. | ^ | itemVar: The name of a variable that will contain each item that we are enumerating. Does not need to be defined beforehand. | ^ | exp: The expression you want to evaluate for every item that meets the criteria. It will have the item available as a UNID under the name used in `itemVar' | ^ Returns | Whatever the last function run in it returns. | ^ Category | [[item]], [[iteration]] | ^ Description | For each item that meets the criteria in the game, evaluate the expression with the item's itemstruct in the itemVar. | === Example === (itmEnumTypes "s" itemType (dbgOutput (itmGetName itemType)) ) This will display the name of every shield in the game. Return to [[:Functions]] list