Javascript if statement issue
<p>I'm having an issue with this basic conditional statement..</p>

<p>When the var equals 9 then the script works but once hits 10 and above it refers to "running low" which is only for the number 5 and below...please help..</p>

<p>Thank you.</p>

<pre><code>&lt;script type="text/javascript"&gt;


var inventory = "9";


if( inventory == "Sold Out" ){
   document.write("&lt;b&gt;Sold Out&lt;/b&gt;");


}else if( inventory &gt;= "6" ){
   document.write("&lt;b&gt;more than 5&lt;/b&gt;");

}else if( inventory &lt;= "5" ){
   document.write("&lt;b&gt;running low&lt;/b&gt;");

}else{
  document.write("&lt;b&gt;error&lt;/b&gt;");
}

&lt;/script&gt; 
</code></pre>
