Difference between revisions of "TLO:Arg"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
== Examples == | == Examples == | ||
*${Arg[1,this]} | *${Arg[1,this]} | ||
+ | : "this" | ||
*${Arg[2,one,two]} | *${Arg[2,one,two]} | ||
+ | : "two" | ||
*${Arg[1,one,two,three]} | *${Arg[1,one,two,three]} | ||
+ | : "one" | ||
+ | *${Arg[2,${MyVariable}]} | ||
+ | : The second comma-separated value in MyVariable | ||
== See Also == | == See Also == | ||
* [[LavishScript:Top-Level Objects|Top-Level Objects]] | * [[LavishScript:Top-Level Objects|Top-Level Objects]] |
Revision as of 03:16, 31 March 2005
Contents
Description
Requires LavishScript 1.11
Forms
- string Arg[#,...]
- Retrieves a given argument by number, out of all following arguments
Examples
- ${Arg[1,this]}
- "this"
- ${Arg[2,one,two]}
- "two"
- ${Arg[1,one,two,three]}
- "one"
- ${Arg[2,${MyVariable}]}
- The second comma-separated value in MyVariable