title: mvc3 cshtml razor and if statement how to use it in view
body: <pre><code>@foreach (var articleOnFirstPage in Model.ArticlesOnFirstSite)
  {
      &lt;td&gt; 
      if (@article.Deleted == true) 
      {   
          @:Yes
      }
      else
      {
          @:No
      }
      &lt;/td&gt;
  }
  </code></pre>
  
  <p>can i do this like <code>@article.Deleted == true ? @:Yes : @:No</code> ?</p>
  
  <p>i try but i get error. Is there any good web page with this examples for mvc3 razor?</p>