VALUE
not

The not operator reverses a boolean value.


Parameters

This operator has one parameter:

value – A Boolean (integer) value.


Description

The not operator reverses a Boolean value – true becomes false, false becomes true. Not is a unary operator, so there is no parameter on the left, only a single parameter on the right.

not true() ☞ false
not false() ☞ true
not 1=1 ☞ false
not "green"="blue" ☞ true

Note for C Programmers: The not operator is equivalent to the ~ operator in C. It actually performs a ones-complement on the value, so you can use this operator if you need to “flip the bits” in a numeric value.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but you are no longer required to put parentheses around the formula in a procedure if it begins with the *not* operator.