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

Last Updated: 11 June, 2024