title: Convert Multiple if condition into Ternary Operator
body: <p>I want to convert below condition to ternary </p>
  
  <pre><code>if (!string.IsNullOrEmpty(objModel.Status))
  {
      if (objModel.Status == "0")
      {
          Model.Sort = "Result1";
      }
      else if (objModel.Status == "8")
      {
          Model.Sort = "Result2";
      }
      else 
      {
          Model.Sort = "Result3"; 
      }
  }
  </code></pre>
  
  <p>I have tried as below but it went upto if and else not else if</p>
  
  <pre><code>Model.Sort = !string.IsNullOrEmpty(Model.Status) 
      ? (Model.Status == "0" ? Retult1 : string.Empty) 
      : string.Empty;
  </code></pre>