Difference between revisions of "TLO:Arg"

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

Description

Requires LavishScript 1.11

Forms

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

See Also