configNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Some wiki formatting)
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|arma3
|game1= arma3
 
|version1= 1.56
|1.56


|gr1= Variables
|gr1= Variables
Line 9: Line 8:
|gr2= Config
|gr2= Config


| A non-existing [[Config]].
|descr= A non-existing [[Config]].


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


|s1= [[configNull]]


|r1= [[Config]]


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


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


|x2= <code>[[str]] [[configNull]]; {{cc|returns ""}}</code>
|seealso= [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[taskNull]] [[teamMemberNull]] [[scriptNull]] [[typeName]] [[isNull]]
 
| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[typeName]], [[isNull]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

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