isNull: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Killzone Kid (talk | contribs) (see also, configNull support) |
||
Line 18: | Line 18: | ||
* [[Task]]s -> [[taskNull]] (since ARMA 2) | * [[Task]]s -> [[taskNull]] (since ARMA 2) | ||
* [[Script]]s -> [[scriptNull]] (since Arma 3 1.29.127075) | * [[Script]]s -> [[scriptNull]] (since Arma 3 1.29.127075) | ||
* [[Config]]s -> [[configNull]] (since Arma 3 1.53.133130) | |||
Note: A test via <nowiki>==</nowiki> does not work, because, for example, [[objNull]] is not equal to anything, not even to itself. Use [[isEqualTo]]. |= Description | Note: A test via <nowiki>==</nowiki> does not work, because, for example, [[objNull]] is not equal to anything, not even to itself. Use [[isEqualTo]]. |= Description | ||
Line 31: | Line 32: | ||
|x1 = <code>[[if]] ([[isNull]] obj) [[then]] {[[hint]] "doesn't exist";};</code> | |x1 = <code>[[if]] ([[isNull]] obj) [[then]] {[[hint]] "doesn't exist";};</code> | ||
| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]]|= See also | | [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]]|= See also | ||
}} | }} |
Revision as of 14:44, 30 October 2015
Description
- Description:
- Checks whether the tested item is Null.
Which null type the item has to be equal to depends on the type of game entity tested:
- Objects -> objNull
- Controls -> controlNull
- Displays -> displayNull
- Groups -> grpNull
- Locations -> locationNull (since ARMA 2)
- Tasks -> taskNull (since ARMA 2)
- Scripts -> scriptNull (since Arma 3 1.29.127075)
- Configs -> configNull (since Arma 3 1.53.133130)
- Groups:
- Uncategorised
Syntax
- Syntax:
- isNull entity
- Parameters:
- entity: Object, Control, Display, Group (or Location, Task since ARMA 2 (or Script since Arma 3 1.29.127075))
- Return Value:
- Boolean
Examples
Additional Information
- See also:
- controlNulldisplayNullgrpNulllocationNullobjNulltaskNullteamMemberNullscriptNullconfigNull
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: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Variables
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters