2 Bitwise functions
The functions are listed without additional information. Click on the function to see the full details.
Some general notes on function parameters:
- Function parameters are separated by a comma
- Expressions are accepted as parameters
- Optional function parameters (or parameter parts) are indicated by
>
bitand(value,mask)
The value of “bitwise AND” of an item value and mask.
Supported value types: Integer.
Parameter:
- value - the value to check;
- mask (mandatory) - a 64-bit unsigned integer (0 - 18446744073709551615).
Although the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. For example, checking for the 3rd bit is done by comparing to 4, not 100.
Examples:
bitlshift(value,bits to shift)
Parameter:
- value - the value to check;
Although the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. For example, checking for the 3rd bit is done by comparing to 4, not 100.
bitnot(value)
The value of “bitwise NOT” of an item value.
Supported value types: Integer.
Parameter:
- value - the value to check.
Although the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. For example, checking for the 3rd bit is done by comparing to 4, not 100.
bitor(value,mask)
The value of “bitwise OR” of an item value and mask.
Supported value types: Integer.
- value - the value to check;
- mask (mandatory) - a 64-bit unsigned integer (0 - 18446744073709551615).
Although the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. For example, checking for the 3rd bit is done by comparing to 4, not 100.
bitrshift(value,bits to shift)
The bitwise shift right of an item value.
Supported value types: Integer.
Parameter:
- value - the value to check;
- bits to shift (mandatory) - the number of bits to shift.
Although the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. For example, checking for the 3rd bit is done by comparing to 4, not 100.
bitxor(value,mask)
The value of “bitwise exclusive OR” of an item value and mask.
Supported value types: Integer.
Parameter:
- value - the value to check;
- mask (mandatory) - a 64-bit unsigned integer (0 - 18446744073709551615).