configNull: Difference between revisions

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


| A non-existing [[Config]].
| A non-existing [[Config]].
* <tt>[[configNull]] <nowiki>==</nowiki> [[configNull]]; // true</tt>
 
* <tt>[[isNull]] [[configNull]]; // true</tt>
{{Important | unlike other null values ([[objNull]], [[grpNull]], etc), [[configNull]] returns [[true]] when compared to itself.}}
* <tt>[[configNull]] [[isEqualTo]] [[configNull]]; // true</tt> |DESCRIPTION=
 
* <tt>[[configNull]] <nowiki>==</nowiki> [[configNull]]; {{cc|returns '''true'''}}</tt>
* <tt>[[isNull]] [[configNull]]; {{cc|returns true}}</tt>
* <tt>[[configNull]] [[isEqualTo]] [[configNull]]; {{cc|returns true}}</tt> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''configNull''' |SYNTAX=
| [[configNull]] |SYNTAX=


| [[Config]] |RETURNVALUE=
| [[Config]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1= <code>_config = [[missionNamespace]] [[getVariable]] ["myConfig", [[configNull]]];</code>|=
|x1= <code>_config = [[missionNamespace]] [[getVariable]] ["myConfig", [[configNull]]];</code>|Example1=
| x2 = <code>[[str]] [[configNull]]; // ""</code> |=  
 
|x2= <code>[[str]] [[configNull]]; {{cc|returns ""}}</code> |Example2=
____________________________________________________________________________________________
____________________________________________________________________________________________


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



Revision as of 23:15, 4 September 2019

Hover & click on the images for description

Description

Description:
A non-existing Config.
unlike other null values (objNull, grpNull, etc), configNull returns true when compared to itself.
Groups:
Uncategorised

Syntax

Syntax:
configNull
Return Value:
Config

Examples

Example 1:
_config = missionNamespace getVariable ["myConfig", configNull];
Example 2:
str configNull; // returns ""

Additional Information

See also:
controlNulldisplayNullgrpNulllocationNullobjNulltaskNullteamMemberNullscriptNulltypeNameisNull

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