controlNull: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) |
||
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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[controlNull]] |SYNTAX= | ||
| [[Control]] |RETURNVALUE= | | [[Control]] |RETURNVALUE= | ||
| x1 = <code>![[isNull]] [[controlNull]]; | |x1= <code>[[if]] (_myCtrl [[isEqualTo]] [[controllNull]]) [[then]] { [[hint]] "_myCtrl is null!"; };</code> |Example1= | ||
| | |||
|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 | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | |||
[[Category: | |||
[[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
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