LOTUSSCRIPT LANGUAGE


Not operator
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


Usage

The following table explains how LotusScript determines the result of the Not operation.
exprResult
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 exprBit n in result
0 1
1 0

Example

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

See Also