Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous section

BitXor Operator

Used to perform a bitwise exclusion on two numeric expressions.

Synopsis

result = expression1 BitXor expression2

Arguments

The BitXor operator syntax has these parts:

result Any numeric variable.
expression1 Any expression.
expression2 Any expression.

Description

The BitXor operator performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit in result according to the following table:

If bit in expression1 is If bit in expression2 is The result is
0 0 0
0 1 1
1 0 1
1 1 0

See Also