These perform logical operations on the boolean data type or bitwise
operations on the numeric data type, but are generally interchangeable. The
operators &&
, ||
, and ^^
will logically and, or, and
exclusive or their arguments respectively. The ~~
operator logically
negates its argument. All these operators take two boolean stack arguments
(or one and a variable designator) and push a boolean result, except the
negation operator which is unary. The operators
&
, |
, and ^
bitwise and, or, and exclusive or their
arguments respectively. The ~
operator performs a ones complement on
its argument. All these operators take two numeric stack arguments (except
the ones complement operator) or one stack argument and a variable designator
and push a numeric result.
Go to the first, previous, next, last section, table of contents.