Javascript shorthand which calls functions : <p>I want a shorthand that runs a function if true and runs a separate function if false. Something like:</p>

<pre><code>(condition)? function1:function2;
</code></pre>
