(Very simple) JavaScript error : <p>I have this JS code, the commented line of which prevents a JSON to work correctly (when I comment the line, it works; when I uncomment it, it stops working):</p>

<pre><code>function GenSpecieChg()
{
var selText = document.getElementById("textGenSpecie");
var sca = selText.value;
//if (sca &lt;&gt; "" &amp;&amp; sca.indexOf("%") == -1) selText.value += "%";
localStorage.setItem("34_Delta", selText.value);
alert("GenSpecie changed !");
}
</code></pre>

<p>What is my error ?</p>
