API Reference > bentleyjs-core > Configuration > Config > getBoolean getBoolean Method Attempt to get a boolean type variable value. getBoolean(name: string, defaultVal?: boolean): boolean throws if the variable does not exist and no default value is provided. Parameter Type Description name string the variable name to retrieve. defaultVal boolean the value to return if the variable does not exist. Returns - boolean Defined in core/bentley/src/Config.ts Line 143 Last Updated: 11 June, 2024