nil: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN -->  <!-- Note Section END --> </dl> " to "") | Lou Montana (talk | contribs)  m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) | ||
| Line 1: | Line 1: | ||
| {{Command | {{Command | ||
| | ofp  | | ofp | ||
| |1.00 | |1.00 | ||
| |gr1= Variables  | |gr1= Variables | ||
| | Nil value. This value can be used to undefine existing [[Variables|variables]].  | | Nil value. This value can be used to undefine existing [[Variables|variables]]. | ||
| | [[nil]]  | | [[nil]] | ||
| | [[Nothing]]  | | [[Nothing]] | ||
| |x1= <code>variableToDestroy = [[nil]];</code>  | |x1= <code>variableToDestroy = [[nil]];</code> | ||
| |x2= <code>[[private]] _variable = 50; | |x2= <code>[[private]] _variable = 50; | ||
| _variable = [[nil]]; | _variable = [[nil]]; | ||
| [[hint]] [[format]] ["Variable = %1", _variable]; {{codecomment|// will display "Variable {{=}} any" ({{arma3}})}}</code>  | [[hint]] [[format]] ["Variable = %1", _variable]; {{codecomment|// will display "Variable {{=}} any" ({{arma3}})}}</code> | ||
| | [[isNil]], [[Variables]]  | | [[isNil]], [[Variables]] | ||
| }} | }} | ||
Revision as of 01:27, 18 January 2021
Description
Syntax
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
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
Bottom Section
Categories: 
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Variables
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands
 
	