isNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#))?\]\] " to "")
m (Text replacement - "| Boolean " to "|r1= Boolean ")
Line 56: Line 56:
|p1 = entity: [[Object]], [[Control]], [[Display]], [[Group]], [[Location]], [[Task]], [[Script]], [[Config]] or [[Diary Record]]
|p1 = entity: [[Object]], [[Control]], [[Display]], [[Group]], [[Location]], [[Task]], [[Script]], [[Config]] or [[Diary Record]]


| [[Boolean]]
|r1= [[Boolean]]


|x1 = <code>[[if]] ([[isNull]] obj) [[then]] {[[hint]] "doesn't exist";};</code>
|x1 = <code>[[if]] ([[isNull]] obj) [[then]] {[[hint]] "doesn't exist";};</code>

Revision as of 22:19, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Problems:
teamMemberNull for Team Member type is not supported. Use private _isNull = _teamMember isEqualTo teamMemberNull instead.
Groups:
Variables

Syntax

Syntax:
Syntax needed
Parameters:
entity: Object, Control, Display, Group, Location, Task, Script, Config or Diary Record
Return Value:
Boolean

Examples

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

Additional Information

See also:
controlNulldisplayNullgrpNulllocationNullobjNulltaskNullteamMemberNullscriptNullconfigNulltypeName

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