title: ASP.net Web page error Use of unassigned local variable 'some'
body: <p>I have razor code like this</p>
  
  <pre><code>bool some;
  
  if (IsPost == false)
  {
  
   some = True
  
  }
  </code></pre>
  
  <p>then html</p>
  
  <pre><code>&lt;h1&gt;@some.ToString()&lt;/h1&gt;
  </code></pre>
  
  <p>and when i run it it get's me error
   Use of unassigned local variable 'some'</p>
  
  <p>could anyone explain why? doesn't razor code executes first and then html?</p>