title: C++ Ternary Operator with Equality Statement
body: <p>While debugging someone else's code, I ran into an expression of the following form:</p>
  <pre><code>auto result = value == bool_value? result_if_bool_value: result_if_not_bool_value
  </code></pre>
  <p>I am familiar with ternary operators, but I am confused by the double equality operator in the above statement.</p>
  <p>Specifically, what is the equivalent of the above command written with if-else statements?</p>