title: JavaScript shorthand if statement, without the else portion
body: <p>So I'm using a shorthand JavaScript <code>if</code>/<code>else</code> statement (I read somewhere they're called Ternary statements?)</p>
  <pre><code>this.dragHandle.hasClass('handle-low') ? direction = &quot;left&quot; : direction = &quot;right&quot;
  </code></pre>
  <p>This works great, but what if later I want to use just a shorthand <code>if</code>, without the <code>else</code> portion. Like:</p>
  <pre><code>direction == &quot;right&quot; ? slideOffset += $(&quot;.range-slide&quot;).width()
  </code></pre>
  <p>Is this possible at all?</p>