title: Multiple Ternary operator in c++
body: <p>I have a doubt in the following scenario (C++): </p>
  
  <p>Say, I have an if condition</p>
  
  <pre><code>if ( a ? b ? c : d : false)
  {
      // do something
  }
  else
  {
      // do something else
  }
  </code></pre>
  
  <p>This is my interpretation of how it works:</p>
  
  <pre><code>If a is true, it checks b. Then,
      - If b is true, the if loop is reduced to if (c)
      - If b is false, the if loop is reduced to if (d)
  If a is false, the if loop is reduced to if (false)
  </code></pre>
  
  <p>Is my understanding correct?<br>
  Is using this better or multiple <code>if</code>/<code>else</code> checks?  </p>