If variable matches 3 conditions
<p>I need to have an if statement to check if a number is = 0, or between 5000 and 3600000. How can have it check all 3 conditions?</p>

<p>Number can be 0 or 5000 or above OR 3600000 or less. It can't be -1, 1.1 2.3 or anything between 0 and 5.</p>

<p>Here is what I have now and this work for checking if less than 5000 or greater than 3600000</p>

<pre><code>var intervalCheck = interval * digit
if(isNaN(intervalCheck))
{
    alert("Must be a number.");
}
else if((intervalCheck &lt; 5000)||(intervalCheck&gt;=3600000))
{
    alert("Must be between 5 seconds and 1 hour.");
}
else
{
    localStorage["interval_setting"] = interval * digit;
    saveActions();
}
</code></pre>
