Please read the comments below your question for an explanation. I assume you really want to do:
1 == 1 | 1 == 2
This is TRUE because the first test is TRUE .
3 == 3 & 3 == 4
This is FALSE because the second test is FALSE and & requires both (or all) of the tests to be TRUE .
source share