TLO:Select

From Lavish Software Wiki
Revision as of 19:58, 10 April 2006 by Lax (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

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