BitOr
|
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
BitOr( value_1, [ value_2, ... ] )
bitor( value_1, [ value_2, ... ] )
BitOr( value_1, [ value_2, ... ] )
BitOr( value_1, [ value_2, ... ] )
BitOr( value_1, [ value_2, ... ] )
BitOr( value_1, [ value_2, ... ] )
Description
The BitOr function returns the bit in the result if the bit
exists in any argument. The arguments must be numbers, and the
fractional portion is truncated before the or operation is applied. The
result is the bitwise OR of all the arguments.
Parameters
| Parameter | Type | Definition and Requirements |
|---|---|---|
|
List of Numbers |
One or more numbers to bitwise OR. |
Examples
The following query executes an array of independent bitwise OR operations and returns results in the result array. The result array position matches the position in the execution array.
[ 7, 0, 1, 1, 7 ]
[7, 0, 1, 1, 7]
[7 0 1 1 7]
Arr(LongV(7), LongV(0), LongV(1), LongV(1), LongV(7))
[7, 0, 1, 1, 7]
[ 7, 0, 1, 1, 7 ]