how to control which parts the && applies to in an if statement
<p>let say I have this if statement:</p>

<pre><code>if($(this).hasClass('rightnav') | $(this).parent() == 'nav' &amp;&amp; $(this).parent().parent() == 'section')
</code></pre>

<p>How can I tell the script that the &amp;&amp; should apply after the | and not the entire if?
Thanks! this is really confusing me :s</p>
