title: Jquery "if this and if that" then do this
body: <p>This should be so simple, but it's not working for me. I want to say:</p>
  
  <p>If this doesn't have the class "current" AND if the body class does not equal "home", then do this....</p>
  
  <p>Here is what I'm trying (among other things) to no avail. Only the first conditional works.</p>
  
  <pre><code>$(".nav1 &gt; ul &gt; li").mouseleave(function() {
  
      if ( (!$(this).hasClass("current")) || (!$(body).hasClass("home"))  ){
           $(this).find(".nav-overlay").show();   
      }
  
  }); 
  </code></pre>
  
  <p>What am I doing wrong? Thank you!</p>
  
  <p>UPDATE FOR CLARITY:</p>
  
  <p>I only want to show ".nav-overlay" when the following conditions are true:</p>
  
  <ol>
  <li>You are not on the homepage (body class="home") 
  AND </li>
  <li>The ".nav1 > ul > li" class does not equal "current"</li>
  </ol>