Include jQuery Using JS Shorthand
<p>So I'm working on a site, and we need to check if jQuery is defined before writing it to the page.  I want to convert it to use JS conditional shorthand, but for some reason when I do that the statement does not execute.  Here is my code:</p>

<pre><code>Original (this works, tested):

if (typeof jQuery == 'undefined') {
    document.write('&lt;script type="text/javascript" src="', JSPATH_REL_symc + 'jquery-1.4.2.min.js','"&gt;&lt;\/script&gt;');
}
</code></pre>

<p>That version works perfectly.  Now I replaced it with this, and for some reason I'm having issues:</p>

<pre><code>New w/Shorthand:

(typeof jQuery == 'undefined') ? document.write('&lt;script type="text/javascript" src="', JSPATH_REL_symc + 'jquery-1.4.2.min.js','"&gt;&lt;\/script&gt;') : '';
</code></pre>

<p>Any idea what is wrong with this syntax?</p>

<p>Thanks.</p>
