What does the end part of this declaration do?
<p>I've just been sent this and am unsure about the last part of this variable declaration:</p>

<p><code>var u = (document.getElementById('myaccount').className.match(/loggedin/)) ? 'true' : 'false';</code></p>

<p>From what I can see this is performing a pattern match for the string "loggedin" but what does the end <code>? 'true' : 'false';</code> part do?</p>

<p>I've not seen anything like this before so am unsure...</p>
