TLO:Select

From Lavish Software Wiki

Forms

  • uint Select[find text,...]
Finds a parameter matching the first, out of the parameters that follow. If none are found the result is 0. Otherwise, the result is the number of the parameter that matches, with 1 being the first following parameter, 2 being the second following parameter, and so on.

Examples

echo ${Select[apple,apple,orange,banana]}

The value of the above is 1

See Also