title: Inline If in Razor View
body: <p>In my controller, I have and inline If statement:</p>
  
  <pre><code>ViewBag.NameSortParam = If(String.IsNullOrEmpty(sortOrder), "Name desc", "")
  </code></pre>
  
  <p>In my view, I can't seem to use inline if:</p>
  
  <pre><code>@Code
      If(True, true, true)
  End code
  </code></pre>
  
  <p>It says, "If must end with matching End If."  Why can't I use an inline if here?  Thanks.</p>