Skip to main content

$bitAnd

The $bitAnd operator performs a bitwise AND operation on integer values.

Input

  • An array of integer values (at least 2 values required)

Output

  • The result of performing a bitwise AND operation on all input values

Examples

Basic Bitwise AND

Result: 1 (binary: 101 AND 011 = 001)

Multiple Values

Result: 3 (binary: 1111 AND 0111 AND 0011 = 0011)

Field Value

Result: The bitwise AND of flag1 and flag2 fields