title: Why would you choose to use the ternary operator (?:) over a "traditional" if..else block?
body: <p>The ternary operator in C (and many other languages), <code>?:</code>,  is a compressed if-then-else statement.</p>
  <p>For example:</p>
  <pre><code>a &gt; b ? func(a) : func(b) ;
  </code></pre>
  <p>Why/when would you use it over an if-then-else?</p>
  <p>Is it <em>functionally</em> different from <code>if...else</code> - and, if so, how?</p>