getNumber Method

Attempt to get a number type variable value.

getNumber(name: string, defaultVal?: number): number

throws if the variable does not exist and no default value is provided.

Parameter Type Description
name string the variable name to retrieve.
defaultVal number the value to return if the variable does not exist.

Returns - number

Defined in

Last Updated: 11 June, 2024