objNull: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
||
Line 26: | Line 26: | ||
|descr= 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> | ||
* | * {{hl|[[isNull]] [[objNull]]; // true}} | ||
* | * {{hl|[[objNull]] [[isEqualTo]] [[objNull]]; // true}} | ||
|s1= '''objNull''' | |s1= '''objNull''' |
Revision as of 01:15, 16 November 2021
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Variables