Page tree
Skip to end of metadata
Go to start of metadata

Returns the bit-wise ORing of the bits of all the arguments. That is, the result bit is 1 when any of the corresponding bits in the arguments are 1, and 0 otherwise.

Parameters

Unlimited number of parameters.

Example
char2a = String.fromEbcdicHex('0123');
char2b = String.fromEbcdicHex('AB');
char2c = String.fromEbcdicHex('8816');
char2d = pjs.bitOr(char2a, char2b, char2c);
 
if (char2d.rtrim() === String.fromEbcdicHex('AB77').rtrim()) {
  result = 'yes';
}


RPG Equivalent

%BITOR()