Logical operators (unary)

The unary logical operator is !.

Syntax
Logical NOT: !<operand>
Description

The ! operator returns 1 (true) if the operand is 0, otherwise it returns 0 (false).

The operand can be any expression evaluating to an absolute expression.

Example

See the following listing for an example of the unary logical operator.

Listing: Unary logical operator

!(8<5)    ; = $1 (TRUE)