How can we avoid rewriting the same comparison multiple times?

We can save its result in a variable and reuse the variableWe can't avoid it since comparisons can't be saved for later

We can save its result in a variable and reuse the variable.