Argument: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
An '''argument''' is any value that is passed to a [[:Category: Scripting Commands|scripting command]] or an executed [[Script (File)|script]] or [[Function|function]]. In the script or function this value is considered a [[Parameter|parameter]].
An '''argument''' is any value that is passed to a [[:Category: Scripting Commands|scripting command]] or an executed [[Script (File)|script]] or [[Function|function]]. In the script or function this value is considered a [[Parameter|parameter]].


'''Example:'''
== Example ==


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

Revision as of 00:29, 22 December 2006

An argument is any value that is 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"] spawn "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