isNull: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(description, syntax, seealso updated) |
||
Line 15: | Line 15: | ||
* [[Display]]s -> [[displayNull]] | * [[Display]]s -> [[displayNull]] | ||
* [[Group]]s -> [[grpNull]] | * [[Group]]s -> [[grpNull]] | ||
* [[Location]]s -> [[ | * [[Location]]s -> [[locationNull]] (since ARMA 2) | ||
* [[Task]]s -> [[taskNull]] (since ARMA 2) | |||
* [[Team Member]] -> [[teamMemberNull]] (since ARMA 2) | |||
Note: A test via <nowiki>==</nowiki> does not work, because, for example, [[objNull]] is not equal to anything, not even to itself. |= Description | Note: A test via <nowiki>==</nowiki> does not work, because, for example, [[objNull]] is not equal to anything, not even to itself. |= Description | ||
Line 22: | Line 24: | ||
| '''isNull''' obj |= Syntax | | '''isNull''' obj |= Syntax | ||
|p1 = obj: [[Object]], [[Control]], [[Display]], [[Group]] (or [[Location]], | |p1 = obj: [[Object]], [[Control]], [[Display]], [[Group]] (or [[Location]], [[Task]], [[Team Member]], since ARMA 2) |= Parameter 1 | ||
| [[Boolean]] |= Return value | | [[Boolean]] |= Return value | ||
Line 28: | Line 30: | ||
|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]], [[ | | [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]] |= See also | ||
}} | }} |
Revision as of 12:39, 2 November 2011
Description
- Description:
- Checks whether the tested item is Null.
Which null type the item has to be equal to depends on the type of object tested:
- Objects -> objNull
- Controls -> controlNull
- Displays -> displayNull
- Groups -> grpNull
- Locations -> locationNull (since ARMA 2)
- Tasks -> taskNull (since ARMA 2)
- Team Member -> teamMemberNull (since ARMA 2)
- Groups:
- Uncategorised
Syntax
- Syntax:
- isNull obj
- Parameters:
- obj: Object, Control, Display, Group (or Location, Task, Team Member, since ARMA 2)
- Return Value:
- Boolean
Examples
- Example 1:
if (isNull obj) then {hint "doesn't exist"}
Additional Information
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.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Variables
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters