Help with ternary operator
<p>I don't think I am using the ternary operator correctly as I am not getting the results am I after:</p>

<pre><code>buildHTML.push("&lt;a href='http://mysite/user?screen_name=" + data.friend == null ? data.user.me : data.friend + "'&gt;" + data.friend == null ? data.user.me : data.friend + "&lt;/a&gt;");
</code></pre>

<p>This gives me <code>null</code> if <code>friend</code> is <code>null</code>, and gives me <code>friend</code> if <code>friend</code> is <code>not null</code></p>

<p>It should be giving me <code>me</code> if <code>friend</code> is <code>null</code> and <code>friend</code> if <code>friend</code> is <code>not null</code>.</p>

<p>What am I doing wrong?</p>
