basic Javascript if/else statement question
<p>I'm looking at the following Javascript code, trying to port it to another language: </p>

<pre><code>if (x&gt;n) {return q} {return 1-q)
</code></pre>

<p>I don't know what the code is doing, but can someone tell me based on syntax what occurs? Is there an implied 'else' before the last set of {}? That is, if x>n then return q otherwise return 1-q?</p>

<p>If it helps, here's the line of code it was embedded within:</p>

<pre><code>if(x&gt;9000 | n&gt;6000) { var q=Norm((Power(x/n,2/5)+1/(8*n)-1)/Sqrt(9/(2*n)))/3; if (x&gt;n) {return q}{return 1-q} }
</code></pre>

<p>thanks</p>
