RAD Studio |  |

not, !

Category

Alternative Representations of Operators and Tokens, Operators

Syntax

Description

The not operator is an alternative representation of the !operator (logical negation).

not returns true if its operand is false, and false if its operand is truet.

If an integer is 1, the expression of !1 indicates that the number is other than 1 So that is a true statement. not can also be used for strings as well. The expression !Smith indicates that the person's name is other than Smith.. not inverts the bits of the expression.

In order to use the not operator, you need to check the Enable new operator names option (the -VM compiler switch, available on the Compatibility page of the ProjectOptions dialog box).

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!