configNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Some wiki formatting)
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.56


|1.56|= Game version
|gr1= Variables
____________________________________________________________________________________________


| A non-existing [[Config]].
|gr2= Config
* <tt>[[configNull]] <nowiki>==</nowiki> [[configNull]]; // true</tt>
* <tt>[[isNull]] [[configNull]]; // true</tt>
* <tt>[[configNull]] [[isEqualTo]] [[configNull]]; // true</tt> |= Description
____________________________________________________________________________________________


| '''configNull''' |= Syntax
|descr= A non-existing [[Config]].


| [[Config]] |= Return value
{{Feature|important|
____________________________________________________________________________________________
Unlike other null values ([[objNull]], [[grpNull]], etc), [[configNull]] returns [[true]] when compared to itself.
|x1= <code>_config = [[missionNamespace]] [[getVariable]] ["myConfig", [[configNull]]];</code>|=
<sqf>
| x2 = <code>[[str]] [[configNull]]; // ""</code> |=
configNull == configNull; // returns true
____________________________________________________________________________________________
isNull configNull; // returns true
configNull isEqualTo configNull; // returns true
configNull == configFile >> "ANonExistentEntry"; // returns true
</sqf>
}}


| [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[typeName]], [[isNull]]  |= See also
|s1= [[configNull]]


}}
|r1= [[Config]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_config = missionNamespace getVariable ["myConfig", configNull];</sqf>
<dl class="command_description">
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= <sqf>str configNull; // returns ""</sqf>


[[Category:Arma 3: Scripting Commands]]
|seealso= [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[taskNull]] [[teamMemberNull]] [[scriptNull]] [[typeName]] [[isNull]]
[[Category:Arma 3: New Scripting Commands List]]
}}

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