I get a warning saying: Use of logical "||" with constant operand. And it doesn't work the way I intend.Code:if ( opcode == (0x0) || (0x1)|| (0x2) || (0x4)|| (0x6)|| (0x1)) { //blah }
Is there a proper syntax for this kind of operation? I just want to see if the variable "opcode" is equivalent to either one of the hexadecimals on the right.
Thanks