Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






CBool function

Returns an expression converted to the Boolean data type.

Note This function is new with Domino Release 6.

Syntax

CBool ( expr )

Elements

expr

Any numeric expression, or the string expressions True and False.

Return value

CBool returns an expression that has been converted to Boolean.

CBool(EMPTY) returns False.

If expr is a numeric expression, CBool returns 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 data type, the function raises an error.

See examples

Examples: CBool function
Related topics
LotusScript Language Reference: A through D
Data type conversion
Boolean data type
CByte function
CCur function
CDat function
CDbl function
CInt function
CLng function
CSng function
CStr function
CVar function




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009