nil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *\[\[([a-zA-Z0-9_]+)\]\] * \|r1=" to "|s1= $1 |r1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 24: Line 24:
|gr1= Variables
|gr1= Variables


| Nil value. This value can be used to undefine existing [[Variables|variables]].
|descr= Nil value. This value can be used to undefine existing [[Variables|variables]].


|s1= [[nil]]
|s1= [[nil]]

Revision as of 21:15, 13 June 2021

Hover & click on the images for description

Description

Description:
Nil value. This value can be used to undefine existing variables.
Groups:
Variables

Syntax

Syntax:
nil
Return Value:
Nothing

Examples

Example 1:
variableToDestroy = nil;
Example 2:
private _variable = 50; _variable = nil; hint format ["Variable = %1", _variable]; // will display "Variable = any" (Arma 3)

Additional Information

See also:
isNilVariables

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note