config / name: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (#)
m (template:command argument fix)
(12 intermediate revisions by 4 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns subentry of config entry with given name, (alias for >>). |= Description
| 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]]). Do not confuse with [[a_/_b|division operator /]] |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''''config'' / ''name'''''|= Syntax
| config '''/''' name|SYNTAX=


| p1 = config: [[Config]]|=Parameter 1
| p1 = config: [[Config]] |PARAMETER1=


|p2 =  name: [[String]] | = Parameter 2
|p2 =  name: [[String]] | = Parameter 2


| [[Config]] |= Return value
| [[Config]] - config entry |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>configFile / "CfgVehicles"</pre> |= Example 1
|x1= <code>[[configFile]] / "CfgVehicles";</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[configFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] |= See also
| [[configFile]], [[missionConfigFile]], [[campaignConfigFile]], [[configName]], [[config greater greater name|config >> name]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] |SEEALSO=


}}
}}
Line 29: Line 29:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on Apr 1, 2014 - 00:02
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<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""<br>
[([[configFile]]/"ATMineCrater"/"MissileCircleDust"),[]] [[call]] [[BIS_fnc_configPath]];
//return: ["configfile","ATMineCrater","MissileCircleDust"]
</code>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 15:35, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns config entry with given name (alias for config >> name, slightly slower but with higher precedence). Do not confuse with division operator /
Groups:
Uncategorised

Syntax

Syntax:
config / name
Parameters:
config: Config
name: String
Return Value:
Config - config entry

Examples

Example 1:
configFile / "CfgVehicles";

Additional Information

See also:
configFilemissionConfigFilecampaignConfigFileconfigNameconfig >> namecountgetArraygetTextgetNumberinheritsFromisArrayisClassisNumberisTextselect

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

Posted on Apr 1, 2014 - 00:02
ffur2007slx2_5
(ArmA3 1.14) config / name can be composed to config >> name String or Array format via BIS_fnc_configPath. E.g. [(configFile/"ATMineCrater"/"MissileCircleDust"),""] call BIS_fnc_configPath; //return: "configfile >> "ATMineCrater" >> "MissileCircleDust""
[(configFile/"ATMineCrater"/"MissileCircleDust"),[]] call BIS_fnc_configPath; //return: ["configfile","ATMineCrater","MissileCircleDust"]

Bottom Section