Use logical rather than bitwise OR in if() expression.