{"name":"BIS_fnc_configExtremes","operator":null,"title":"BIS fnc configExtremes","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_configExtremes","revid":327750,"updated":"2022-07-13T11:09:06Z","groups":["Configs"],"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":"Scan config paths and return min and max values for each property.\n\nCan be used only for properties of type Number and Array (value is considered to be the geometric mean of all numbers in the array).","syntaxes":[{"syntax":"[paths, properties, propertyTypes, propertyDefaults] call BIS_fnc_configExtremes","since":null,"effect":null,"exec":null,"params":[{"name":"paths","type":"Array of Configs","optional":false,"default":null,"description":"paths to be scanned.","types":["Array","Config"],"since":null,"text":"paths: Array of Configs - paths to be scanned."},{"name":"properties","type":"Array of Strings","optional":false,"default":null,"description":"class names of properties to be evaluated.","types":["Array","String"],"since":null,"text":"properties: Array of Strings - class names of properties to be evaluated."},{"name":"propertyTypes","type":"Array of Booleans","optional":true,"default":"false","description":"whether the property at the respective index should be evaluated and returned as a logarithmic number","types":["Array","Boolean"],"since":null,"text":"propertyTypes: Array of Booleans - (Optional, default false) whether the property at the respective index should be evaluated and returned as a logarithmic number"},{"name":"propertyDefaults","type":"Array of Numbers","optional":true,"default":"0","description":"value to be used in cases where the property at the respective index is not defined","types":["Array","Number"],"since":null,"text":"propertyDefaults: Array of Numbers - (Optional, default 0) value to be used in cases where the property at the respective index is not defined"}],"returns":{"type":"Array","types":["Array"],"description":"[minValues, maxValues] where minValues and maxValues are arrays respective to the properties array.","text":"Array - [minValues, maxValues] where minValues and maxValues are arrays respective to the properties array."}}],"examples":[{"text":"```sqf\nprivate _paths = [configFile >> \"CfgWeapons\"] call BIS_fnc_returnChildren;\n[_paths, [\"maxRange\", \"reloadTime\"]] call BIS_fnc_configExtremes;\n```","code":["private _paths = [configFile >> \"CfgWeapons\"] call BIS_fnc_returnChildren;\n[_paths, [\"maxRange\", \"reloadTime\"]] call BIS_fnc_configExtremes;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Configs","Functions","Introduced with Arma 3 version 1.36"],"docblock":null,"filled_from_docblock":[]}