ToNumber

Converts a boolean or text value to a numeric.

Variants

ToNumber(Boolean boolean)

Returns 0 if the boolean value is false, and 1 if the boolean value is true.

Parameters

boolean
The boolean value you want to convert.

Returns

Numeric

Examples

ToNumber(Text text)

Returns the numeric value represented by the text.

Parameters

text
The text value you want to convert.

Returns

Numeric

Examples