Difference between revisions of "Command:Arg"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
+ | {{CMD-DR|Arg|Intermediate|Intermediate|Newbie|Intermediate}} | ||
+ | <tt>Arg <#> [...]</tt> | ||
== Description == | == Description == | ||
+ | Displays the ''n''th argument (also known as parameter) out of the following parameters | ||
== Examples == | == Examples == | ||
+ | === Example 1 === | ||
+ | ;Input | ||
+ | <tt>Arg 1 one two three four</tt> | ||
+ | ;Output | ||
+ | <tt>one</tt> | ||
+ | === Example 2 === | ||
+ | ;Input | ||
+ | <tt>Arg 3 one two three four</tt> | ||
+ | ;Output | ||
+ | <tt>three</tt> | ||
== See Also == | == See Also == | ||
*[[LavishScript:Commands|Commands]] | *[[LavishScript:Commands|Commands]] | ||
+ | |||
+ | [[Category:LavishScript]] | ||
+ | [[Category:LavishScript Commands]] |
Latest revision as of 23:21, 25 May 2005
Syntax
Arg | |
Usage | Intermediate |
Level of Understanding | Intermediate |
Computer Savvy | Newbie |
Logic | Intermediate |
Arg <#> [...]
Description
Displays the nth argument (also known as parameter) out of the following parameters
Examples
Example 1
- Input
Arg 1 one two three four
- Output
one
Example 2
- Input
Arg 3 one two three four
- Output
three