Menu

operators-bor

Will Pittenger

Provides a way to OR together two unsigned integers such that each bit in the result is the boolean OR of the two corresponding bits in the operands. This is equivalent to the | operator in C/C++/C#/Java. Implemented by the types byte, word, dbyte, qbyte, and obyte.

Typical prototype

The "T" represents the actual unsigned integer type being used.

operator bor var T left, var T right
  returns T

Related

Wiki: Operators
Wiki: operators-and
Wiki: operators-band
Wiki: operators-bnand
Wiki: operators-bnor
Wiki: operators-bnot
Wiki: operators-bxnor
Wiki: operators-bxor
Wiki: operators-nand
Wiki: operators-nor
Wiki: operators-not
Wiki: operators-or
Wiki: operators-xnor
Wiki: operators-xor