Confused with the ? operator in C#
<p>I have a variable called full_name if the full_name has a string length > 5 I would like to set nm to the first 4 characters of full_name otherwise I would like to set nm to all the characters of full_name. </p>

<pre><code>var nm;

if (full_name.Length &gt; 5)
{
    nm = full_name.Substring(0, 4);
}
else
{
    nm = full_name;
};
</code></pre>

<p>I'm totally confused with the "?" operator. </p>

<p>Could I use it for this ?</p>
