title: can you add an if else statements in between <tr> tags in a .cshtml files
body: <p>I am writing a program in visual studio 2015, there is a dropdown in a table where a user can select values, I want to change the content of the next row based on the users selection by using an if else statement inside the  tag's  tag.
  Is this possible ? </p>
  
  <p>my code in cshtml:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;
          @Html.DropDownList(
              "Actions_performed", 
              new SelectList(ViewBag.Actions_performed, "Key", "Value"),
              "--select--", 
              new { @class = "form-control" });
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;!--make ajax here --&gt;
          @if (Model.ActionSelected == "keyvalueofselectedaction")
          {
              string x = "this text";
              Console.WriteLine(x);
          }
          else
          {
              string upload = "upload file here!";
              Console.WriteLine(upload);
          }
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>