Confused about the ? operator in c#
<p>I want to make it so that if the value of subs is not "" then the ULs go before and after it and into the variable sL.  If subs is "" then sL get the value ""</p>

<pre><code>var sL = (subs != "") ? "&lt;ul&gt;" + subs + "&lt;/ul&gt;" : "";
</code></pre>

<p>But it doesn't seem to work. </p>

<p>Is my format correct?</p>
