How can I detect if a number is greater than 20 or greater than 50 with an if : <p>I try to detect when a number is
 greater than 10,20,30,40, etc.
But this code does not work.</p>

<pre><code>var number = 35;
var text;
if(number &gt;= 10){
text = "&gt; 10"
}
else if(number &gt;= 20){
text = "&gt; 20"
}
else if(number &gt;= 30){
text = "&gt; 30"
}
</code></pre>

<p>It only takes me the first if</p>
