- Reference >
- Operators >
- Update Operators >
- Bitwise Update Operator >
- $bit
$bit¶
-
$bit¶ The
$bitoperator performs a bitwise update of a field. Only use this with integer fields, as in the following examples:Here, the
$bitoperator updates the integer value of the field namedfield: in the first example with a bitwiseand: 5operation; and in the second example with a bitwiseor: 5operation.$bitonly works with integers.$bitonly supportsANDandORbitwise operations.