LOTUSSCRIPT LANGUAGE

CBool function
Example

Returns an expression converted to the Boolean data type.

Syntax

CBool ( expr )

Elements

expr


Return value

CBool returns an expression that has been converted to a Variant of subtype Boolean.

CBool(EMPTY) returns 0 (False).

If expr is a numeric expression, CBool returns a variant containing the value True or False, depending on the value of the numeric expression: 0 becomes False, and any other value becomes True.

If expr lies outside the acceptable range for the Boolean subtype, the function raises an error.

Example
See Also