The bit plugin is the easiest way to do bitwise operation
bitwise operation are not boolean operation. Boolean is a type. The operation you do with booleans are assignations and comparaisons.
the bitwise AND, OR, NOT, Shift,.. aren't comparaisons.
Besides, in scripting languages, the syntaxe is different :
AND : & for bitwise, && for comparaison
OR : | for bitwise, || for comparaison
NOT : ~ for bitwise, ! for comparaison