{"name":"BIS_fnc_getCfgDataBool","title":"BIS fnc getCfgDataBool","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getCfgDataBool","revid":352618,"updated":"2024-02-16T20:51:49Z","groups":["Configs"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Gets a number defined in config and retype it into a boolean. Everything greater than 0 is true, otherwise it is false.\n\n- Default syntax works for any config\n- Alternative syntax is for comfortable working with mission's Description.ext.","syntaxes":[{"syntax":"config call BIS_fnc_getCfgDataBool","params":[{"name":"config","type":"Config","description":"Config path","type_expr":"Config"}],"returns":{"type":"Boolean","type_expr":"Boolean"}},{"syntax":"array call BIS_fnc_getCfgDataBool","params":[{"name":"Array of Strings","description":"missionConfigFile classes and an attribute","type_expr":"Array<String>"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["private _value = (missionConfigFile >> \"Characters\" >> \"Default\" >> \"equipAdjust\") call BIS_fnc_getCfgDataBool;"]},{"code":["private _value = [\"Characters\", \"Default\", \"equipAdjust\"] call BIS_fnc_getCfgDataBool;"]}],"see_also":["BIS_fnc_getCfgData","BIS_fnc_getCfgDataArray","BIS_fnc_getCfgDataObject","BIS_fnc_getCfgDataPool"]}