BAND operator

Synopsis
This operator performs a bitwise AND operation.
Variations
Number BAND Number2
Performs a bitwise AND operation.
Parameters
Number

Specifies the first 32-bit integer.

Supported types: Numeric.
Number2

Specifies the second 32-bit integer.

Supported types: Numeric.
Returns
Returned types: Numeric.
Examples
1.

The following example returns 0. Note that 0 = 0b00, 1 = 0b01, 2 = 0b10.

2 BAND 1
2.

The following example returns 2. Note that 2 = 0b10.

2 BAND 2