title: Check if number is between two numbers
body: <p>I have a variable called 'age' and am trying to work out if it is between two numbers.  In this case I want to find out if the age is between 30 and 80.</p>
  
  <p>I have this so far...</p>
  
  <pre><code>if ( age &gt;= 30 &amp;&amp; age &lt;=80 ) {
              $('.display').each(function() {
                  $(this).css('display', '');
              });
              }
  </code></pre>
  
  <p>This works great if the age is below 30 then the .display div does not get displayed, but the last part where it checks if the number is less than 80 does not work.</p>
  
  <p>Can anyone point me in the direction of a similar function I can read up on?  Or am I doing something obvious wrong?</p>