title: Assign empty string only if variable is nil (ternary operator)
body: <p>I'm trying to achieve the equivalent of the following C# code:</p>
  
  <pre><code>someStringValue = someStringValue ?? string.Empty;
  </code></pre>
  
  <p>Where if <code>someStringValue</code> is null, a value of <code>string.Empty</code> (the empty string: <code>""</code>) will be assigned.  How do I achieve this in Objective-C?  Is my only option:</p>
  
  <pre><code>if(!someStringValue)
     someStringValue = @"";
  </code></pre>
  
  <p><strong><em>Solution thanks to @Dave DeLong</em></strong>:</p>
  
  <pre><code>someStringValue = someStringValue ?: @"";
  </code></pre>