title: Why does Razor not like this?
body: <p>Ive got a mega annoying problem I have a view with:</p>
  
  <pre><code>@{
  
          if(ViewBag.Section == "Home")
          {
             &lt;div id="headerfrontPage"&gt;   
          }
          else
          {
              &lt;div id="header"&gt;   
          }
  
  
       }
  </code></pre>
  
  <p>And I get a compilation error:</p>
  
  <blockquote>
    <p>The code block is missing a closing "}" character.  Make sure you have
    a matching "}" character for all the "{" characters within this block,
    and that none of the "}" characters are being interpreted as markup.</p>
  </blockquote>
  
  <p>How do I conditionally write a div? Its for a hack bascially...</p>