configNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(7 intermediate revisions by the same user not shown)
Line 10: Line 10:
|descr= A non-existing [[Config]].
|descr= A non-existing [[Config]].


{{Feature | important | Unlike other null values ([[objNull]], [[grpNull]], etc), [[configNull]] returns [[true]] when compared to itself.<br><br>
{{Feature|important|
* {{hl|c= [[configNull]] <nowiki>==</nowiki> [[configNull]]; {{cc|returns true}}}}
Unlike other null values ([[objNull]], [[grpNull]], etc), [[configNull]] returns [[true]] when compared to itself.
* {{hl|[[isNull]] [[configNull]]; {{cc|returns true}}}}
<sqf>
* {{hl|[[configNull]] [[isEqualTo]] [[configNull]]; {{cc|returns true}}}}
configNull == configNull; // returns true
* {{hl|c= [[configNull]] <nowiki>==</nowiki> [[configFile]] >> "ANonExistentEntry"; {{cc|returns true}}}}
isNull configNull; // returns true
configNull isEqualTo configNull; // returns true
configNull == configFile >> "ANonExistentEntry"; // returns true
</sqf>
}}
}}


Line 21: Line 24:
|r1= [[Config]]
|r1= [[Config]]


|x1= <code>_config = [[missionNamespace]] [[getVariable]] ["myConfig", [[configNull]]];</code>
|x1= <sqf>_config = missionNamespace getVariable ["myConfig", configNull];</sqf>


|x2= <code>[[str]] [[configNull]]; {{cc|returns ""}}</code>
|x2= <sqf>str configNull; // returns ""</sqf>


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

Latest revision as of 13:13, 13 May 2022

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.
configNull == configNull; // returns true isNull configNull; // returns true configNull isEqualTo configNull; // returns true configNull == configFile >> "ANonExistentEntry"; // returns true
Groups:
VariablesConfig

Syntax

Syntax:
configNull
Return Value:
Config

Examples

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

Additional Information

See also:
controlNull displayNull grpNull locationNull objNull taskNull teamMemberNull scriptNull typeName isNull

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