Exactly speaking, it's not same as OR. It's logical operator, and OR is a kind of bit operators. Try typing as follows. ?1 OR 2 ?1 || 2