title: How do I construct an if statement within a MVC View
body: <p>Hopefully this question is quick and painless</p>
  
  <p>I have a mvc view where i want to display either one of two values depending on an if statement. This is what I have in the view itself:</p>
  
  <pre><code> &lt;%if (model.CountryId == model.CountryId) %&gt;
          &lt;%= Html.Encode(model.LocalComment)%&gt; 
          &lt;%= Html.Encode(model.IntComment)%&gt;
  </code></pre>
  
  <p>If true display model.LocalComment, if false display model.IntComment.</p>
  
  <p>This doesn't work as I get both values showing. What am I doing wrong?</p>