TLO:Select

From Lavish Software Wiki
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

LavishScript Top-Level Objects

Data Storage Conversion
Bool - Float - Int - String
Enums
Enum
Date/Time
Time
Events
Event
Inline Branching
If
Math
Math
Misc
Arg - Event - Execute - LavishScript - Script - Select - Type
Operating System
System
Scripting
QueuedCommands - Return - Variable - This - VariableScope - ForEach - Context