Home stretch! Let’s go over boolean operators.
( 1 == 1 ) && ( 2 == 2 ) # true ( 1 == 2 ) || ( 2 == 2 ) # true !( false ) # true
&&both comparisons on the left and right must evaluate to
truefor the entire statement to return
true. If the left side does not return
trueit will not bother trying the right side
||either the right or left side must evaluate to
true. If the left side evaluates to
true, the right side will not be tried because it has met the condition of one side being
!you reverse the result. If you’re
true. if you’re
false! Just think of it as opposite day!
The code in the editor indicates what value (
false) we want each variable to have, and your job is to add an expression that evaluates to the correct value using boolean operators (