title: If, else if loop broken
body: <p>I've just written a small if, else if loop and I get a, <code>unexpected token ';'</code> error in the console. If I remove the <code>;</code> after each <code>$(this).css('top', top-3"em");</code> statement, I get another error saying the <code>}</code> before the <code>else if</code> is unexpected! </p>
  
  <p>Here's my loop, any ideas where I might have strayed? </p>
  
  <pre><code>$('div.result').each(function() {
  
      $(this).css('top', top+"em");
      top = top + 8;
  
      resultcount = resultcount - 1;
  
      if(resultcount=5) {
          $(this).css('top', top-3"em");
      } else if(resultcount=4) {
          $(this).css('top', top-7"em");
      } else if(resultcount=3) {
          $(this).css('top', top-14"em");
      } else if(resultcount=2) {
          $(this).css('top', top-20"em");
      } else(resultcount=1) {
          $(this).css('top', top-30"em");
      }
  
  });
  </code></pre>