{"name":"BIS_fnc_configPath","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns config path to given entry in given format.","syntaxes":[{"syntax":"[config, format, strict] call BIS_fnc_configPath","since":null,"effect":null,"exec":null,"params":[{"name":"config","type":"Array, String or Config","optional":false,"default":null,"description":"input config","types":["Array","String","Config"],"since":null,"text":"config: Array, String or Config - input 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","types":["Array","String","Config"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Array","String","Config"],"description":null,"text":"Array, String or Config"}}],"examples":[{"text":"```sqf\n[\"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]\n```","code":["[\"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]"]},{"text":"```sqf\n[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\"] call BIS_fnc_configPath; // \"mary >> \"\"had\"\" >> \"\"a\"\" >> \"\"little\"\" >> \"\"lamb\"\"\"\n```","code":["[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\"] call BIS_fnc_configPath; // \"mary >> \"\"had\"\" >> \"\"a\"\" >> \"\"little\"\" >> \"\"lamb\"\"\""]},{"text":"```sqf\n[[\"configFile\",\"CfgVehicles\",\"Car\"]] call BIS_fnc_configPath; // bin\\config.cpp/CfgVehicles/Car\n```","code":["[[\"configFile\",\"CfgVehicles\",\"Car\"]] call BIS_fnc_configPath; // bin\\config.cpp/CfgVehicles/Car"]},{"text":"```sqf\n[\"bin\\config.cpp/CfgVehicles/Car\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]\n```","code":["[\"bin\\config.cpp/CfgVehicles/Car\"] call BIS_fnc_configPath; // [\"configFile\",\"CfgVehicles\",\"Car\"]"]},{"text":"```sqf\n[configFile >> \"CfgVehicles\" >> \"Car\", \"\"] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\"\n```","code":["[configFile >> \"CfgVehicles\" >> \"Car\", \"\"] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\""]},{"text":"```sqf\n[\"bin\\config.cpp/CfgVehicles/Car\", \"\", true] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\"\n```","code":["[\"bin\\config.cpp/CfgVehicles/Car\", \"\", true] call BIS_fnc_configPath; // \"configFile >> \"\"CfgVehicles\"\" >> \"\"Car\"\"\""]},{"text":"```sqf\n[\"bin\\config.cpp/CfgVehicles/Car\", \"\"] call BIS_fnc_configPath; // \"bin\\config.cpp/CfgVehicles/Car\"\n```","code":["[\"bin\\config.cpp/CfgVehicles/Car\", \"\"] call BIS_fnc_configPath; // \"bin\\config.cpp/CfgVehicles/Car\""]},{"text":"```sqf\n[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\", true] call BIS_fnc_configPath; // \"\" invalid config\n```","code":["[[\"mary\", \"had\", \"a\", \"little\", \"lamb\"], \"\", true] call BIS_fnc_configPath; // \"\" invalid config"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["configHierarchy"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Configs","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}