I think Person(JP) explanation isn't clear. What AND does is compare the bit representation of two values and return the value build by the logic operator AND. For example if you compare 3 AND 6 it will pass. 3 in bit is &b011 and 6 is &b110, and since the second bit match the returned value will be &b010 aka 2. If you compare 3==6 you will get false since they are not the same number