title: Avoid to print the if conditions in mvc3 helper
body: <p>I created a helper to build a list my problem it's that each time that if expression it's evaluate prints the value with true or false in my html. How can I avoid this behavior???</p>
  
  <p>Here's my helper </p>
  
  <pre><code>@helper elementTipificacion(IEnumerable&lt;prueba.Models.Tipificacion&gt; datos){
  
  foreach (var item in @datos)
  {
      if (@item.Tipificacion1.Count &gt; 0) &lt;--- this the expression thay print's true or false
      {
          &lt;li&gt;
              &lt;a href="#" id="tipificacion-@item.IdTipificacion"&gt;@item.Nombre&lt;/a&gt;
              &lt;ul&gt;
                  @elementTipificacion(@item.Tipificacion1)
                  &lt;/ul&gt;    
          &lt;/li&gt;
      }
      else{
          &lt;li&gt;
              &lt;a href="#" id="tipificacion-@item.IdTipificacion"&gt;@item.Nombre&lt;/a&gt;
          &lt;/li&gt;
      }
  
      @datos.ToList().Remove(@item);
  }
  }
  </code></pre>
  
  <p>And this the output</p>
  
  <p><img src="https://i.stack.imgur.com/Dg7GO.png" alt="enter image description here"></p>