BitwiseAnd

Returns the result of the bitwise AND operation.

Syntax

BitwiseAnd(value1, value2)

Parameters

Parameter

Type

Description

value1

number

Numeric value

value2

number

Numeric value

Return

Result of the bitwise AND operation.

Note

value1 and value2 are converted to integers and then bitwise AND 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 = 7 & 1
# x now is equal to 1

NexScript

x = BitwiseAnd(7, 1)
% x now is equal to 1