Difference between revisions of "TLO:Select"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
== See Also == | == See Also == | ||
− | + | {{LavishScript:Top-Level Object}} | |
− | |||
− |
Latest revision as of 16:45, 8 July 2018
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
LavishScript Top-Level Objects