Difference between revisions of "Command:Arg"

From Lavish Software Wiki
Jump to navigation Jump to search
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]]
 
{{Command-Stub}}
 

Revision as of 23:39, 12 March 2005

Syntax

Command Difficulty Rating
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

See Also