Shorthand IF Statement
<p>I'm curious, is there a simpler way to say</p>

<pre><code>if(myVar == myVal || myVar == myOtherVal){ /*...*/ }
</code></pre>

<p>such as:</p>

<pre><code>if(myVar == myVal || myOtherVal){ /* */ }
</code></pre>

<p>I am aware that my proposed code only checkes to see whether <code>myVar</code> equals <code>myVal</code> or <code>myOtherVal</code> is not <code>null</code> (undefined) and <code>false</code>.</p>

<p>So, as I stated before, is there a simpler way to write</p>

<pre><code>if(myVar == myVal || myVar == myOtherVal){ /*...*/ }
</code></pre>

<p>Just curious to know if there's some sort of jS shorthand <code>if</code> statment that works like this that I have missed.</p>

<p>Thanks in advance.</p>
