Interesting javascript quirks
<p>I have this following if statement:</p>

<p>RG is "100" and max is "85"</p>

<pre><code>if (RG == "" | RG &gt; max) {
            //Doesn't execute
        }
</code></pre>

<p>Since RG isn't "" and RG is larger than max why isn't the code executing?  I believed the operator was short circuiting (hence only the one pipe |) but changing it didn't make any difference. My guess is that it is comparing literal strings - so how do I force javascript to treat them as floats?</p>

<p>Just to be clear I need both parts of the OR to be checked and only execute if either of them is true.</p>
