controlNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| A non-existing [[Control]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
| A non-existing [[Control]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]] (see examples). |DESCRIPTION=
* <tt>[[controlNull]] <nowiki>==</nowiki> [[controlNull]]; // false</tt>
* <tt>[[isNull]] [[controlNull]]; // true</tt>
* <tt>[[controlNull]] [[isEqualTo]] [[controlNull]]; // true</tt> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''controlNull''' |SYNTAX=
| [[controlNull]] |SYNTAX=


| [[Control]] |RETURNVALUE=
| [[Control]] |RETURNVALUE=


| x1 = <code>![[isNull]] [[controlNull]]; // false</code> |=
|x1= <code>[[if]] (_myCtrl [[isEqualTo]] [[controllNull]]) [[then]] { [[hint]] "_myCtrl is null!"; };</code> |Example1=
| x2 = <code>[[str]] [[controlNull]]; // No control</code> |=
 
|x2= <code>[[controlNull]] == [[controlNull]]; {{cc|returns [[false]]}}
[[isNull]] [[controlNull]]; {{cc|returns [[true]]}}
[[controlNull]] [[isEqualTo]] [[controlNull]]; {{cc|returns [[true]]}}</code> |Example2=
 
|x3= <code>[[str]] [[controlNull]]; {{cc|No control}}</code> |Example3=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
| [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
}}
}}


Line 34: Line 35:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|CONTROLNULL]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|CONTROLNULL]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[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}}}}]]
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Revision as of 21:18, 3 September 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
A non-existing Control. To compare non-existent objects use isNull or isEqualTo (see examples).
Groups:
Uncategorised

Syntax

Syntax:
controlNull
Return Value:
Control

Examples

Example 1:
if (_myCtrl isEqualTo controllNull) then { hint "_myCtrl is null!"; };
Example 2:
controlNull == controlNull; // returns false isNull controlNull; // returns true controlNull isEqualTo controlNull; // returns true
Example 3:
str controlNull; // No control

Additional Information

See also:
displayNullgrpNulllocationNullobjNulltaskNullteamMemberNullscriptNullconfigNulltypeNameisNull

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