title: Problems with conditional statement in jQuery
body: <p>I'm having a problem handling some numbers from a json request. Based on the results I'm trying to output some various bits of HTML. Specifically the problem is when I come to check whether a number is greater than -1, but less than 6. Code excerpt is as follows…</p>
  
  <pre><code>else if(parseInt(myvariable, 10) &lt; -1) {
  //this is where one thing happens
  }
  else if(parseInt(myvariable, 10) &gt; -1) {
  //Something else happens here
  }
  else if(parseInt(myvariable, 10) &gt; 6) {
  //This is where the third thing should happen, but doesn't?
  }
  </code></pre>
  
  <p>It seems that despite the value being 7 or 70 the second 'else if' is as far as it gets.</p>
  
  <p>Is there a way that I can check that the number is more than -1 but less than 6 so that it moves on to the next conditional statement.</p>
  
  <p>I'm guessing that (like my previous question) there's a very simple answer so please excuse my naivety.</p>
  
  <p>Thanks in advance.</p>