{"name":"configProperties","operator":null,"title":"configProperties","type":"command","url":"https://community.bistudio.com/wiki/configProperties","revid":377082,"updated":"2026-01-01T09:41:25Z","groups":["Config"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.36"}],"since":{"game":"arma3","name":"Arma 3","version":"1.36"},"arma3_since":"1.36","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns an array of config entries that meet the criteria in the condition code. The command iterates through available classes and config properties for given config entry.\nCurrent looked at config is stored in _x variable (similar to alternative count command implementation).\nThe condition has to return true in order for the looked at property to be added to the resulting array. This command is a bit slower than configClasses but allows to access inherited entries.","syntaxes":[{"syntax":"configProperties [config, condition, inherit]","since":null,"effect":null,"exec":null,"params":[{"name":"config","type":"Config","optional":false,"default":null,"description":"config entry to search","types":["Config"],"since":null,"text":"config: Config - config entry to search"},{"name":"condition","type":"String","optional":true,"default":"\"true\"","description":"expression, which if returns true, adds current property to result\n\n> [!IMPORTANT]\n> - The condition code passed to configProperties should only be used for **simple filter expressions** and nothing more.\n> - Since Arma 3 v2.02 the following conditions are optimised for performance:\n>   - `\"true\"` (omitted condition)\n>   - `\"isClass _x\"`\n>   - `\"isClass _x && (...)\"`","types":["String"],"since":null,"text":"condition: String - (Optional, default \"true\") expression, which if returns true, adds current property to result\n\n> [!IMPORTANT]\n> - The condition code passed to configProperties should only be used for **simple filter expressions** and nothing more.\n> - Since Arma 3 v2.02 the following conditions are optimised for performance:\n>   - `\"true\"` (omitted condition)\n>   - `\"isClass _x\"`\n>   - `\"isClass _x && (...)\"`"},{"name":"inherit","type":"Boolean","optional":true,"default":"true","description":"include inherited properties","types":["Boolean"],"since":null,"text":"inherit: Boolean - (Optional, default true) include inherited properties"}],"returns":{"type":"Array of Configs","types":["Array","Config"],"description":null,"text":"Array of Configs"},"form":"unary","operator":null,"left":null,"right":{"text":"[config, condition, inherit]","types":["Array"]}}],"examples":[{"text":"```sqf\n_configs = configProperties [configFile >> \"CfgVehicles\" >> \"O_Truck_02_box_F\"];\n```","code":["_configs = configProperties [configFile >> \"CfgVehicles\" >> \"O_Truck_02_box_F\"];"]},{"text":"```sqf\n_configs = configProperties [configFile >> \"RscText\", \"true\", true];\n```","code":["_configs = configProperties [configFile >> \"RscText\", \"true\", true];"]},{"text":"Get all hitpoints of a truck:\n\n```sqf\n_hitPoints = [];\n_hitPointsCfgs = configProperties [\n    configFile >> \"CfgVehicles\" >> \"O_Truck_02_box_F\" >> \"HitPoints\", \n    \"true\", \n    true\n];\nhint str _hitPointsCfgs;\n```","code":["_hitPoints = [];\n_hitPointsCfgs = configProperties [\n\tconfigFile >> \"CfgVehicles\" >> \"O_Truck_02_box_F\" >> \"HitPoints\", \n\t\"true\", \n\ttrue\n];\nhint str _hitPointsCfgs;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Config","configFile","missionConfigFile","configClasses","configHierarchy"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Config","Introduced with Arma 3 version 1.36","Scripting Commands"]}