You might be on the right lines but your code won’t work....
If ( x = 1) is always true.... try ( x == 1) to test if x is equal to one. But as you are doing a bit wise and with 4, it never will be...., x can only ever be 4 or 0.
You might be on the right lines but your code won’t work....
If ( x = 1) is always true.... try ( x == 1) to test if x is equal to one. But as you are doing a bit wise and with 4, it never will be...., x can only ever be 4 or 0.