pjs.bitXor()
Returns the bit-wise exclusive ORing of the bits of the two arguments. That is, the result bit is 1 when just one of the corresponding bits in the arguments are 1, and 0 otherwise.
Parameters
Value 1
Value 2
Example
num3 = String.fromEbcdicHex('0007');
num1 = String.fromEbcdicHex('000F');
num2 = pjs.bitXor(num3, num1);
if (num2.rtrim() === String.fromEbcdicHex('0008').rtrim()) {
result = 'yes';
}
RPG Equivalent
%BITXOR()