nil

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

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

Syntax

Syntax:
nil
Return Value:
Any Value

Examples

Example 1:
variableToDestroy = nil

Additional Information

Multiplayer:
-

Notes

Notes


Only post proven facts here. Use the talk page or the forums for discussions.

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"


Bottom Section

Personal tools
Google Ads