title: Assign only if condition is true in ternary operator in JavaScript
body: <p>Is it possible to do something like this in JavaScript?</p>
  
  <pre><code>max = (max &lt; b) ? b;
  </code></pre>
  
  <p>In other words, assign value only if the condition is true. If the condition is false, do nothing (no assignment). Is this possible?</p>