Argument: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
'''Example:'''
'''Example:'''


  [variable, 5, "string"] spawn "myScript.sqf"
  [variable, 5, "string"] [[execVM]] "myScript.sqf"


<tt>variable</tt>, <tt>5</tt> and <tt>"string"</tt> are called the arguments given to the script. You could even go as far to call the [[Array]] containing these values the single argument.
<tt>variable</tt>, <tt>5</tt> and <tt>"string"</tt> are called the arguments given to the script. You could even go as far to call the [[Array]] containing these values the single argument.

Revision as of 01:34, 22 December 2006

An argument is any value that is being passed to a scripting command or an executed script or function. In the script or function this value is considered a parameter.


Example:

[variable, 5, "string"] execVM "myScript.sqf"

variable, 5 and "string" are called the arguments given to the script. You could even go as far to call the Array containing these values the single argument.

See also