title: Multiple else if Statements in jQuery
body: <pre><code>        $('#bar3').live('click', function() {
              if($('#bar3').attr('class') == '0') {
                  console.log("closed")
              } else if($('#bar1' &amp;&amp; '#bar2').attr('class') == '0') {
                  console.log("Both")
              } else if($('#bar1').attr('class') == '0') {
                  console.log("Summary Open")
              } else if($('#bar2').attr('class') == '0') {
                  console.log("HIP Open")
              } else {
                  console.log("open") 
              }
           });
  </code></pre>
  
  <p>Why does this not work?</p>
  
  <p>I know what it's doing, I just don't know what to change to fix it.</p>
  
  <p>This part is wrong:</p>
  
  <pre><code>else if($('#bar1' &amp;&amp; '#bar2').attr('class') == '0')
  </code></pre>