title: Razor: adding variable in loop without displaying it
body: <p>Hi I am wondering how do I add numbers without displaying them while in foreach loop
  expamle:</p>
  
  <pre><code>@{ int intVariable = 0; }
  
  @foreach(var item in @Model.Collection)
  {
      @(intVariable += item.MyNumberOfInteres) //-&gt;how can I calculate this without it being rendered to the website ?
  
      //some Html code.......
  }
  </code></pre>
  
  <p>Can anybody help ?</p>
  
  <p>cheers<br>
  sushiBite</p>