objNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|s1=" to " |s1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 24: Line 24:
|gr1= Variables
|gr1= Variables


| A non-existent [[Object]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
|descr= A non-existent [[Object]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
* <tt>[[objNull]] <nowiki>==</nowiki> [[objNull]]; // false</tt>
* <tt>[[objNull]] <nowiki>==</nowiki> [[objNull]]; // false</tt>
* <tt>[[isNull]] [[objNull]]; // true</tt>
* <tt>[[isNull]] [[objNull]]; // true</tt>

Revision as of 22:14, 13 June 2021

Hover & click on the images for description

Description

Description:
A non-existent Object. To compare non-existent objects use isNull or isEqualTo:
Groups:
Variables

Syntax

Syntax:
objNull
Return Value:
Object

Examples

Example 1:
player == player; // false if player is null
Example 2:
isNull player; // true if player is null
Example 3:
str objNull // <NULL-object>
Example 4:
position objNull // [0,0,0]

Additional Information

See also:
controlNulldisplayNullgrpNulllocationNulltaskNullteamMemberNullscriptNullconfigNulltypeNameisNull

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