isNull

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

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:
Note: A test via == does not work, because, for example, objNull is not equal to anything, not even to itself. Use isEqualTo.

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

Example 1:
if (isNull obj) then {hint "doesn't exist";};

Additional Information

Multiplayer:
-
See also:
controlNulldisplayNullgrpNulllocationNullobjNulltaskNullteamMemberNullscriptNull

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section