Difference between revisions of "TLO:Arg"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
== Forms == | == Forms == | ||
*[[DataType:string|string]] '''Arg['''#''','''...''']''' | *[[DataType:string|string]] '''Arg['''#''','''...''']''' | ||
Line 8: | Line 5: | ||
== 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]] | ||
+ | |||
+ | [[Category:LavishScript]] | ||
+ | [[Category:LavishScript Top-Level Objects]] |
Latest revision as of 02:05, 31 August 2005
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