isNil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 24: Line 24:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:ColonelSandersLite|ColonelSandersLite]]'''</dt>
<dd class="note"><br>
I recently had a strange experience with this command.  I forgot to wrap the name of the variable with quotes, and it returned the opposite of the true null status of the variable.  Just something to watch out for.
</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 01:00, 29 August 2007

-wrong parameter ("Arma") defined!-1.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:
Boolean = isnil variable
Parameters:
variable: String or Code
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

ColonelSandersLite

I recently had a strange experience with this command. I forgot to wrap the name of the variable with quotes, and it returned the opposite of the true null status of the variable. Just something to watch out for.

Bottom Section