Assign new value to variable using itself
<p>This doesn't work but I can't see why it wouldn't? any help people? :)</p>

<pre><code>params = qs.split("=", 2),
id = params[1];

if(id.indexOf("?") != -1){
  id = id.split("?", 1);
}
</code></pre>

<p>basically I want to change the value of 'ID' if the IF statement is true, if not.. it skips it and the value Id remains the default.</p>

<p>Thanks</p>
