Boolean data type (LotusScript® Language)

Specifies a variable that contains a True (-1) or False (0) value.

Note: This data type is new with Domino® Release 6.

Usage

A Boolean value is one that contains the value of True or False only. Boolean values are stored as 16-bit (2-byte) numbers. When Boolean values are converted to numeric data types, True becomes -1 and False becomes 0. When other numeric data types are converted to the Boolean data type, 0 becomes False and any other value becomes True.

Boolean variables are initialized to False.

There is no suffix character for the Boolean data type.

When printed, a variable of Boolean data type displays as either True or False; when Write # is used, the variable is displayed as either #TRUE# or #FALSE#.

Example