config / name: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(Add redirection)
Tag: New redirect
 
Line 1: Line 1:
{{RV|type=command
#REDIRECT [[a / b]]
 
|game1= arma1
|version1= 1.00
 
|game2= arma2
|version2= 1.00
 
|game3= arma2oa
|version3= 1.50
 
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50
 
|gr1= Config
 
|descr= Returns [[Config | config]] entry with given name (alias for [[config greater greater name|config >> name]], slightly slower but with [[SQF Syntax#Rules_of_Precedence | higher precedence]]).
{{Feature | informative | Not to be confused with [[a / b|division operator /]].}}
 
|s1= config [[config / name|/]] name
 
|p1= config: [[Config]]
 
|p2= name: [[String]]
 
|r1= [[Config]] - config entry
 
|x1= <sqf>configFile / "CfgVehicles";</sqf>
 
|seealso= ‎[[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]]
}}
 
<dl class="command_description">
 
<dt></dt>
<dd class="notedate">Posted on Apr 1, 2014 - 00:02</dd>
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
<dd class="note">
({{arma3}} 1.14) config / name can be composed to config >> name [[String]] or [[Array]] format via [[BIS_fnc_configPath]]. E.g.
<code>[(configFile/"ATMineCrater"/"MissileCircleDust"),""] call BIS_fnc_configPath; // return: "configfile >> "ATMineCrater" >> "MissileCircleDust""
[(configFile/"ATMineCrater"/"MissileCircleDust"),[]] call BIS_fnc_configPath; // return: ["configfile","ATMineCrater","MissileCircleDust"]</code>
</dd>
 
</dl>

Latest revision as of 12:11, 14 May 2022

Redirect to: