objNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
No edit summary
Line 40: Line 40:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 12, 2016 - 13:14 (UTC)</dd>
<dt class="note">[[User:Demellion|Demellion]]</dt>
<dd class="note">
'''objNull''' simulates a real object parameters, e.g. you can get or set them. This may come useful in cases where the vairable handle should be always an object of any kind instead of [[nil]] to avoid code malfunction on undefined variable or wrong type.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 15:14, 12 September 2016

Hover & click on the images for description

Description

Description:
A non-existent Object. To compare non-existent objects use isNull or isEqualTo:
Groups:
Uncategorised

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>

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

Posted on September 12, 2016 - 13:14 (UTC)
Demellion
objNull simulates a real object parameters, e.g. you can get or set them. This may come useful in cases where the vairable handle should be always an object of any kind instead of nil to avoid code malfunction on undefined variable or wrong type.