Not operator (LotusScript® Language)

Performs logical negation on an expression. The Not operator has the effect of rounding its argument to the nearest integer, changing the sign, and subtracting 1.

Syntax

Not expr

Elements

expr

Any expression. Its value must lie within the range for Long values.

Usage

The following table explains how LotusScript® determines the result of the Not operation.

expr

Result

TRUE

FALSE

FALSE

TRUE

NULL

NULL

In addition to performing logical negation, the Not operator reverses the bit values of any variable and sets the corresponding bit in the result according to the following table.

Bit n in expr

Bit n in result

0

1

1

0

Example

Print Not TRUE                     ' Prints False
Print Not 12.4                     ' Prints -13