This is the ThingsDB documentation for version v0, click here for the latest version!

Binary bitwise operators

Can be used on integer values.

Operator Description
& Bitwise AND, true if both a and b are 1.
` `
^ Bitwise XOR, true if a and b are different.

Binary bitwise operator examples:

[
    0b110 & 0b011,
    0b110 | 0b011,
    0b110 ^ 0b011,
];

Return value in JSON format

[
    2,
    7,
    5
]