Difference between revisions of "TLO:Select"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
Line 8: Line 8:
  
 
== See Also ==
 
== See Also ==
*[[LavishScript:Top-Level Objects|Top-Level Objects]]
+
{{LavishScript:Top-Level Object}}
[[Category:LavishScript]]
 
[[Category:LavishScript Top-Level Objects]]
 

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

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