BitwiseOr

Returns the result of the bitwise OR operation.

Syntax

BitwiseOr(value1, value2)

Parameters

Parameter

Type

Description

value1

number

Numeric value

value2

number

Numeric value

Return

Result of the bitwise OR operation.

Note

value1 and value2 are converted to integers and then the bitwise OR operation is applied to these integers.

In Python scripts, use Python bitwise operations. See (https://wiki.python.org/moin/BitwiseOperators) for details.

Examples

Python

x = 2 | 3
# x now is equal to 3

NexScript

x = BitwiseOr(2, 1)
% x now is equal to 3