Caché ObjectScript Reference
$ZBITXOR (legacy function)
|
|
Bitstring function – XOR.
Synopsis
$ZBITXOR(bitstring1,bitstring2)
This page describes the legacy function
$ZBITXOR. It is described here for compatibility with legacy applications.
$ZBITXOR returns a bitstring formed by the (
bitstring1 XOR bitstring2) operation. The length of the resulting bitstring equals the shorter length of the two bitstrings.
The following table shows the four possible results obtained by performing the
XOR operation on two bits (b1 and b2):
If
bitstring 1=[0,0,1,1,0] and
bitstring 2=[0,1,1,0], then the result of
$ZBITXOR would be [0,1,0,1]. That is:
Position 5: 0
XOR null = null
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA