Logical Operators

combit List & Label Designer

combit List & Label

Logical Operators

A logical operator is a function that returns a true/false value. The result (return value) is the Boolean value true or false.

Depending on the type of logical operator, the compound expression is true if both joined expressions are true (AND conjunction) or if at least one of the joined expressions is true (OR conjunction).

The rules of precedence are: Negations are evaluated first, then the "logical AND" and finally the "logical OR".

Example: Zip code >=70000 AND zip code <=80000

Operator

Meaning

Data type

NOT or .NOT.

negation

Boolean

AND or .AND.

logical AND

Boolean

OR or .OR.

logical OR

Boolean

XOR or .XOR.

logical exclusive OR

Boolean