title: How to check if a number is between two numbers and use in conditional
body: <p>Basically, this is what I want to do.. I have two integers, start and end of a range and I want to check if given string contains a number between these two integers. The string can also contain the integer themselves and should be included. </p>
  
  <pre><code>int availableRangeBegin = 12;
  int availableRangeEnd = 20;
  
  String prefDay = "15"
  
  if (int.Parse(prefday) is any number between range 12 and 20 including 12 and 20 )
  {
  
    // do something
    // will get here in this case because 12 &lt; 15 &lt; 20
  }
  </code></pre>
  
  <p>I'm not sure how I can check for a number in a range. Any help will be appreciated!</p>