title: JavaScript IF/ELSE to call another JS Script?
body: <p>I need to call one of two JavaScripts depending on a condition, like so:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  if(b_condition)
    &lt;script type="text/javascript" src="http://script1.js"&gt;&lt;/script&gt;
  else
    &lt;script type="text/javascript" src="http://script2.js"&gt;&lt;/script&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>But this doesnt work. Any ideas how to call another JavaScript call in an If/Else block?</p>