Arma 3 Scripting

Function in Configs

BIS_fnc_getCfgDataBool

Also available as Markdown and JSON, or read the original wiki page.

Description

Gets a number defined in config and retype it into a boolean. Everything greater than 0 is true, otherwise it is false.

Syntax

Syntax 1

config call BIS_fnc_getCfgDataBool

Parameters:

Returns: Boolean

Syntax 2

array call BIS_fnc_getCfgDataBool

Parameters:

Returns: Boolean

Examples

Example 1

private _value = (missionConfigFile >> "Characters" >> "Default" >> "equipAdjust") call BIS_fnc_getCfgDataBool;

Example 2

private _value = ["Characters", "Default", "equipAdjust"] call BIS_fnc_getCfgDataBool;

See also

BIS_fnc_getCfgData · BIS_fnc_getCfgDataArray · BIS_fnc_getCfgDataObject · BIS_fnc_getCfgDataPool