TLO:Select

From the wonderful RedGuides Wiki

Determine if a match was made to argument in the given set of values.

This TLO is added by MacroQuest

Forms

Type Member Description
int Select[argument,value1[,value2,...]]

Access to Types

Type Description
int Data related to integers

Examples

 /declare thing string outer foo
 /echo ${Select[${thing},foo,bar,baz]} | output: 1
 /echo ${Select[${thing},bin,foo,baz]} | output: 2
 /echo ${Select[${thing},bin,baz,foo]} | output: 3
 /echo ${Select[${thing},bin,bar,baz]} | output: 0
/if (${Select[${Target.Class.ShortName},CLR,DRU,SHM]} > 0) /echo Target is a healer

See also