title: Jquery If/Then in Click Function?
body: <p>This is what I want it to do...</p>
  
  <p>When div called 'bd' is clicked > check if the div with id of 'ump' has a class of 'active' >
  if it does, get div with class of 'brandDump' and slide it up slowly, hide it, and remove the class of 'active' > else, take the div with class 'brandDump' and slide it down, show it, and add class of 'active'</p>
  
  <p>Nothing is happening when I click div.bd. What am I doing wrong? </p>
  
  <p>Fiddle link and code below.</p>
  
  <p><a href="http://jsfiddle.net/K2V8f/36/" rel="nofollow">http://jsfiddle.net/K2V8f/36/</a> </p>
  
  <pre><code>&lt;div class="bd"&gt;cool&lt;/div&gt;
  &lt;div class="brandDump" id="ump"&gt;works&lt;/div&gt;
  &lt;div&gt;shape&lt;/div&gt;
  
  .brandDump {
  background-color:#fff;
  width:100px;
  display:none;
  }
  
  .bd {
  width:100px;
  height:100px;
  background-color:#000;
  }
  
  $(".bd").click(function () {
  if ("#ump".hasClass("active")) {
      $(".brandDump").slideUp("slow");
      $(".brandDump").hide();
      $(".brandDump").removeClass("active");
  } else {
      $(".brandDump").slideDown("slow");
      $(".brandDump").show();
      $(".brandDump").addClass("active");
  }
  });
  </code></pre>