Back to top

ReQL command: bit_or

Command syntax

r.bit_or(number) → number

r.bit_or(number[, number, ...]) → number


A bitwise OR is a binary operation that takes two bit patterns of equal length and performs the logical inclusive OR operation on each pair of corresponding bits. The result in each position is 0 if both bits are 0, while otherwise the result is 1.


> r.expr(5).bit_or(3).run(conn)


Get more help

Couldn't find what you were looking for?