objNull: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| ofp | | ofp | ||
|1.00 | |1.00 | ||
|gr1= Variables | |gr1= Variables | ||
| 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]]: | ||
* <tt>[[objNull]] <nowiki>==</nowiki> [[objNull]]; // false</tt> | * <tt>[[objNull]] <nowiki>==</nowiki> [[objNull]]; // false</tt> | ||
* <tt>[[isNull]] [[objNull]]; // true</tt> | * <tt>[[isNull]] [[objNull]]; // true</tt> | ||
* <tt>[[objNull]] [[isEqualTo]] [[objNull]]; // true</tt> | * <tt>[[objNull]] [[isEqualTo]] [[objNull]]; // true</tt> | ||
| '''objNull''' | | '''objNull''' | ||
| [[Object]] | | [[Object]] | ||
|x1= <code>[[player]] == [[player]]; // false if player is null</code> | |x1= <code>[[player]] == [[player]]; // false if player is null</code> | ||
|x2= <code>[[isNull]] [[player]]; // true if player is null</code> | |x2= <code>[[isNull]] [[player]]; // true if player is null</code> | ||
|x3= <code>[[str]] [[objNull]] // <NULL-object></code> | |x3= <code>[[str]] [[objNull]] // <NULL-object></code> | ||
|x4= <code>[[position]] [[objNull]] // [0,0,0]</code> | |x4= <code>[[position]] [[objNull]] // [0,0,0]</code> | ||
| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] | | [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] | ||
}} | }} |
Revision as of 02:24, 18 January 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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Variables
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands