title: Javascript: ternary operator inside "if" condition
body: <p>I found this Javacript code and I am unable to understand what it means to have a ternary operator inside an if condition.</p>
  
  <pre><code>var s = 10, r = 0, c = 1, h = 1, o = 1;
  
  if (s &gt; r ? (c = 5, h = 2) : h = 1, o &gt;= h)
  {
    alert(1);
  }
  </code></pre>
  
  <p>Is the <code>o &gt;= h</code> the result being returned to evaluate in the "if" condition?
  And what about the use of comma in "if" condition?</p>