Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Returns the bit-wise inverse of the bits of the argument. That is, the result bit is 1 when the corresponding bit in the argument is 0, and 0 otherwise.

Parameters
  1. Value to negate
Example
Example 1: Comparing bytes
  char2a = String.fromEbcdicHex('0007');
  char2b = pjs.bitNot(char2a);

  if (char2b.rtrim() === String.fromEbcdicHex('FFF8BFBF').rtrim()) {
    result = 'yes';
  }

 

RPG Equivalent

%BITNOT()

  • No labels