Bitwise Operators
The following boolean operators are available:
band(x)
Boolean AND of left value and x
where x
is a string representing a hexadecimal value.
a.band("3FFF")
bnot()
Boolean NOT of left value.
a.bnot()
bor(x)
Boolean OR of left value and x
where x
is a string representing a hexadecimal value. .
a.bor("3FFF")
bxor(x)
Boolean XOR of left value and x
where x
is a string representing a hexadecimal value. .
shiftLeft(<num>)
Shifts left value right <num>
times.
shiftRight(<num>)
Shifts left value right <num>
times.
Copyright Picolabs | Licensed under Creative Commons.