or (bitwise)


As an extension to Standard Pascal, Irie Pascal supports using the or operator with two operands of integral type to perform bitwise OR. The result of the operation is of integral type, and has its bits set as follows: each bit is one (1) in the result if and only if one of the bits in the corresponding position in the operands is one (1).


   %11100 or %10111  results in %11111

Binary notation is used in the example above so that you can clearly see the individual bits in the operands and the result. The example above could have been written as

   28 or 23   results in  31

which is the same thing, but is probably not as clear.