isNil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 27: Line 27:
'''Example'''
'''Example'''


if ('''isnil'''("_pokus")) then {_pokus=0;}
if ('''isnil''' ("_pokus")) then {_pokus=0;}

Revision as of 16:45, 2 July 2006


isnill variable


Operand types:

variable: String or Code

Type of returned value:

Boolean

Compatibility:

Version 2.00 required

Description:

Tests whether the variable is null.

The function returns true if the variable is null and false if it's not.


Example

if (isnil ("_pokus")) then {_pokus=0;}