title: IF ELSE html helper in razor view?
body: <p>I will like to use IF ELSE statement in Razor view. Is it possible to use IF( html.helper ) then do something? Or any suggestion?</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      &lt;table&gt;
  
              @for (int i = 0; i &lt; Model.Count; i++)
              {
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.HiddenFor(m =&gt; m[i].Question_ID)
                          @Html.HiddenFor(m =&gt; m[i].Type)
                          @Html.DisplayFor(m =&gt; m[i].Question)
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      @if(@Html.DisplayFor(m=&gt; m[i].Type =="Info_Text") **
                      {
                          &lt;td&gt;
                                //DO NOTHING
                          &lt;/td&gt;                
                      }
                      else
                      { 
                      &lt;td&gt;
                          @Html.EditorFor(m =&gt; m[i].Answer)
                      &lt;/td&gt;
                      }
                  &lt;/tr&gt;
              }
  
      &lt;/table&gt;
  </code></pre>