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

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


Unlimited number of parameters.

  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