How to check if a character is within a range
<p>I'm trying to determine if a character falls within a given range. I've searched, but can't find a way to do this.</p>

<pre><code>if(data[0] &gt;= character) {
    // do this
}
</code></pre>

<p>The above is just a simplified example of what I am trying to achieve, where data is a string, and character is a char.  I will also check to see whether data[0] is less than another character, but have omitted that for this example.</p>

<p>Can somebody guide me on what function to use?</p>
