If else conditions in Javascript
<p>I have topdatedata value as 222</p>

<p>I have these 3 conditions specified </p>

<pre><code>if((topDateData&lt;250)&amp;&amp;(topDateData&gt;25)) 
{
alert('one');
}

else if((topDateData&gt;300)&amp;&amp;(topDateData&lt;300)) 
{
alert('Two');
}

else
{
alert('Three');
}
</code></pre>

<p>My questions is why is it getting the value as alert(3) and not alert(one)??</p>
