Scalar. Returns the results of performing a bitwise OR operation on two expressions.
bitor ( expression1, expression2 )
expression1 | Expression that simplifies to an integer or a long (must be the same as expression2). |
expression2 | Expression that simplifies to an integer or a long (must be the same as expression1). |
The function takes two bit patterns and produces another one of the same length by performing the logical OR operation on each pair. The result for the pair is 1 if the first bit or the second bit are 1, or if both bits are 1. Otherwise, the result for the pair is 0. The function returns the same datatype as its arguments.
bitor (5, 3) returns 7, or in binary, bitor (0101, 0011) returns 0111. The user cannot specify binary directly.