objNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 7: Line 6:


|gr1= Variables |GROUP1=
|gr1= Variables |GROUP1=
____________________________________________________________________________________________


| A non-existent [[Object]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
| A non-existent [[Object]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
Line 13: Line 11:
* <tt>[[isNull]] [[objNull]]; // true</tt>
* <tt>[[isNull]] [[objNull]]; // true</tt>
* <tt>[[objNull]] [[isEqualTo]] [[objNull]]; // true</tt> |DESCRIPTION=
* <tt>[[objNull]] [[isEqualTo]] [[objNull]]; // true</tt> |DESCRIPTION=
____________________________________________________________________________________________


|  '''objNull''' |SYNTAX=
|  '''objNull''' |SYNTAX=


| [[Object]] |RETURNVALUE=
| [[Object]] |RETURNVALUE=
____________________________________________________________________________________________
|x1= <code>[[player]] == [[player]]; // false if player is null</code>|EXAMPLE1=  
|x1= <code>[[player]] == [[player]]; // false if player is null</code>|EXAMPLE1=  
|x2= <code>[[isNull]] [[player]]; // true if player is null</code>|EXAMPLE2=
|x2= <code>[[isNull]] [[player]]; // true if player is null</code>|EXAMPLE2=
|x3= <code>[[str]] [[objNull]] // &lt;NULL-object&gt;</code>|EXAMPLE3=  
|x3= <code>[[str]] [[objNull]] // &lt;NULL-object&gt;</code>|EXAMPLE3=  
|x4= <code>[[position]] [[objNull]] // [0,0,0]</code>|EXAMPLE4=  
|x4= <code>[[position]] [[objNull]] // [0,0,0]</code>|EXAMPLE4=  
____________________________________________________________________________________________


| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]  |SEEALSO=
| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]  |SEEALSO=

Revision as of 02:57, 17 January 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

Notes

Bottom Section