configProperties [config, condition, inherit]

Operand types

[config, condition, inherit] : Array

Type of returned value

Description

Returns an array of config entries which meet criteria in condition code.

Command iterates through available config properties for given config entry. If 3rd param is true the search also includes inherited properties.
Current looked at config is stored in _x variable (similar to alternative count command implementation).
Condition has to return true in order for the looked at property to be added to the resulting array.

config: Config - config entry to search
condition: String - (optional, default: "true") code, which if returns true, adds current property to result
inherit: Boolean - (optional, default: true) include inherited properties

Used In

Arma3

Example

_configs = configProperties [configFile >> "CfgVehicles" >> "O_Truck_02_box_F"];

_configs = configProperties [configFile >> "RscText", "true", true];
Search OFPEC COMREF