C# - Are there any advantages or benefits to using ternary operators?
<p>Are there any advantages or benefits to using tertiary operators for if statements?</p>

<p>For example, is the following more efficient? Or considered better programming practice?</p>

<pre><code>variable1 = string.IsNullOrEmpty(variable2) ? "string value" : "";
</code></pre>

<p>Compared to the following format:</p>

<pre><code>        if (string.IsNullOrEmpty(variable2))
        {
            variable1 = "string value"
        } else
        {
            variable1 = "";
        }
</code></pre>
