Boolean operations Ruby
Use these operators:
shell
AND = apple && banana
OR = apple || banana
NOT these operators:
shell
apple and banana
apple or banana
See The Ruby Language operator precedence
See operators - Difference between "or" and || in Ruby? - Stack Overflow See operators - Difference between "and" and && in Ruby? - Stack Overflow]