binary_or()

Learn how to use the bianry_or() function to perform a bitwise OR operation of the two values.

Performs a bitwise or operation on two values.

Syntax

binary_or(value1, value2 )

Parameters

NameTypeRequiredDescription
value1long✔️The left-hand value of the bitwise OR operation.
value2long✔️The right-hand value of the bitwise OR operation.

Returns

Returns logical OR operation on a pair of numbers: value1 | value2.

Examples

print result = binary_or(5, 3)

Output

result
7

| 7 |