isNil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Tests whether the variable is null. The function returns true if the variable is null and false if it's not.  
| Tests whether the variable is null. The function returns true if the variable is null and false if it's not. |= Description
Example if (isnil ("_pokus")) then {_pokus=0;} |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 16:
| [[Boolean]] |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
|x1 = <code> [[if]] ('''isnil''' ("_pokus")) [[then]] {_pokus<nowiki>=</nowiki>0;} </code>
|  |= See also
|  |= See also



Revision as of 07:11, 4 August 2006

-wrong parameter ("Arma") defined!-2.00
Hover & click on the images for description

Description

Description:
Tests whether the variable is null. The function returns true if the variable is null and false if it's not.
Groups:
Uncategorised

Syntax

Syntax:
isnill variable
Parameters:
variable: String
Return Value:
Boolean

Examples

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

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

Bottom Section