Logical Operators

Logical operators used in the Logic Template are operators that operate on the operands as logical values of FALSE or TRUE, that is zero or non-zero.

Three types of equivalence operators are supported:

Operator

Description

"!"

The unary negation operator NOT returns 0 for non-zero operand and 1 for operand of 0.

"||"

The binary operator INCLUSIVE OR returns 1 if either operand is non-zero otherwise it returns 0.

"&&"

The binary operator RESTRICTIVE AND returns 1 if both operands are non-zero otherwise it returns 0.