I want to write something like this:
if [[ ( releases[\"token\"] & $MASK ) -eq 1 ]]; then
but I get the error that:
You can use Arithmetic Expansion:
(((5&3)==1)) && echo YES || echo NO
It will print YES