User`s guide
or value; makes a true
expression or value false and
vice versa.
AND Both expressions must be
true before the entire
expression is true.
OR Either expression must be
true before the entire
expression is true.
XOR One expression must be true
and one must be false before
the entire expression is true.
If x = 6 and y = 10, the following expressions resolves to -1 (true):
NOT(x == 7)
(x > 2) AND (y =< 10)
And these expressions resolves to 0 (false):
NOT(x == 6)
(x < 2) OR (y > 10)
Bitwise Logical Operators
Bitwise logical operators operate on pairs of integers. The corresponding bits of each integer
are compared and the result is stored in the same bit position in a third binary number.The
following table lists the V+ bitwise logical operators.
Operator Effect
BAND Each bit is compared using and logic. If both bits are 1, then the
corresponding bit is set to 1. Otherwise, the bit is set to 0.
BOR Each bit is compared using or logic. If either bit is 1, then the
corresponding bit is set to 1. If both bits are 0, the corresponding bit is
set to 0.
BXOR Each bit is compared using exclusive or logic. If both bits are 1 or both
bits are 0, the corresponding bit is set to 0. When one bit is 1 and the
other is 0, the corresponding bit is set to 1.
Bitwise Logical Operators
Operators
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 113










