Not sure what your trying to achieve but does writing the line like this help?
if ((state & 0xF0) == GROUP_0 )