Can I use .show() or .hide() with a switch 1/0 instead of an If statement
<p>I was just wondering if it was possible to do something like this in jQuery:</p>

<pre><code>$('#MyDiv').show((MyVar==2?1:0)); // 1=show, 0=hide.
</code></pre>

<p>otherwise I'd have to write it like this everywhere.</p>

<pre><code>if(MyVar==2?1:0){$('#MyVar').show();}else{$('#MyVar').hide();}
</code></pre>
