AND and OR operators are useful when you want to connect two Boolean expressions into one expression. The code above shows the difference between using | (or) and using & (and).
AND and OR operators are useful when you want to connect two Boolean expressions into one expression. The code above shows the difference between using | (or) and using & (and).