{"name":"BIS_fnc_configPath","title":"BIS fnc configPath","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_configPath","revid":327973,"updated":"2022-07-13T14:34:58Z","groups":["Configs"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Returns config path to given entry in given format.","syntaxes":[{"syntax":"[config, format, strict] call BIS_fnc_configPath","params":[{"name":"config","type":"Array, String or Config","description":"input config","type_expr":"Array | String | Config"},{"name":"format","type":"Array, String or Config","optional":true,"default":"`[]` or `configNull` if config is Array - see Example 1","description":"desired format of output","type_expr":"Array | String | Config","text":"format: Array, String or Config - (Optional, default `[]` or `configNull` if *config* is Array - see Example 1) desired format of output"},{"name":"strict","type":"Boolean","optional":true,"default":"false","description":"if false, the function will not attempt to construct a valid config before certain format conversions (see Example 2).\nSet this param to true to invoke the strict mode","type_expr":"Boolean","text":"strict: Boolean - (Optional, default false) if false, the function will not attempt to construct a valid config before certain format conversions (see Example 2).\nSet this param to true to invoke the strict mode"}],"returns":{"type":"Array, String or Config","type_expr":"Array | String | Config"}}],"examples":[{"code":["[\"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]"]},{"code":["[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\"] call BIS_fnc_configPath; // \"mary >> \"\"had\"\" >> \"\"a\"\" >> \"\"little\"\" >> \"\"lamb\"\"\""]},{"code":["[[\"configFile\",\"CfgVehicles\",\"Car\"]] call BIS_fnc_configPath; // bin\\config.cpp/CfgVehicles/Car"]},{"code":["[\"bin\\config.cpp/CfgVehicles/Car\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]"]},{"code":["[configFile >> \"CfgVehicles\" >> \"Car\", \"\"] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\""]},{"code":["[\"bin\\config.cpp/CfgVehicles/Car\", \"\", true] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\""]},{"code":["[\"bin\\config.cpp/CfgVehicles/Car\", \"\"] call BIS_fnc_configPath; // \"bin\\config.cpp/CfgVehicles/Car\""]},{"code":["[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\", true] call BIS_fnc_configPath; // \"\" invalid config"]}],"see_also":["configHierarchy"]}