If
Logical Operators
true, false
Not like C/C++, which takes all none-zero values to be true, zero values to be false
&&, ||
Implement short-circuit evaluation
&, |
Not implement short-circuit evaluation
^, exclusive or
!, not
Reference
Ternary Operator