jscript if for global variable
<p>Here's my code</p>

<pre><code>var isNew = true

function limb(a,b)
{
    if (isNew=true) 
    {
        post(a,b);
        isNew = false;
        post ("first");
    }
    else
    {
        post(a,b);
        post ("not first"); 
    }
}
</code></pre>

<p>The problem I'm having is that <code>else</code> condition is never triggered. I'm assuming value of <code>isNew</code> is never updated, but I have no idea why.</p>

<p>Many thanks in advance for any help</p>

<p>Joe</p>
