nil: Difference between revisions
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
m (Text replace - "</dt>" to "") |
||
Line 25: | Line 25: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note">'''[[User:Mikero|Mikero]]''' | <dt class="note">'''[[User:Mikero|Mikero]]'''<dd class="note"> | ||
Note that ArrayName = nil destroys the arrayNAME '''not''' the array content. | Note that ArrayName = nil destroys the arrayNAME '''not''' the array content. | ||
Line 31: | Line 31: | ||
</dd> | </dd> | ||
<dt class="note">'''[[User:Worldeater|Worldeater]]''' | <dt class="note">'''[[User:Worldeater|Worldeater]]'''<dd class="note"> | ||
'''Never ever assign a value to ''nil''!''' | '''Never ever assign a value to ''nil''!''' | ||
Revision as of 13:31, 21 October 2011
Description
- Description:
- Nil value. This value can be used to undefine existing variables.
- Groups:
- Uncategorised
Syntax
- Syntax:
- nil
- Return Value:
- Any Value
Examples
- Example 1:
variableToDestroy = nil
Additional Information
- See also:
- See also needed
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
Notes
- Mikero
- Note that ArrayName = nil destroys the arrayNAME not the array content. Array content is 'destroyed' when no more ArrayNames refer to the content.
- Worldeater
- Never ever assign a value to nil! Doing so creates a global variable with the same name that overrides the "command" nil: foo = "foo"; nil = "bar"; foo = nil; hint foo; // displays "bar"