Boolean operators, like mathematical ones, have an order of operations. When you're solving a boolean expression, follow this ordering:

`!`

`(`

and`)`

`==`

and`!=`

`&&`

`||`

- The
relational operators andarithmetic operators .

Let's test that with a few more boolean expressions:

Original | Simplified | Answer |

!true || false | false || false | false |

true || false && true | true || false | true |

true == false && false | true == false | false |

true != false || true | true != true | false |