title: New Table row every 4th loop
body: <p>How do I create a new table row on every 4th loop in my Razor View?  This is creating a new row for each number before 4, and then quits creating new rows:</p>
  
  <pre><code>  @{
              int i = 0;
           }
           @foreach (var item in ViewBag.ProgramIdList)
           {
  
            if((i / 4) == 0)
            {
                @:&lt;tr&gt;
            }
            &lt;td&gt;
            &lt;input type="checkbox" name="@item.ProgramId" id="@item.ProgramId" /&gt;   
           &lt;label for="@item.ProgramTitle"&gt;@item.ProgramTitle&lt;/label&gt;
           &lt;/td&gt;
          if((i / 4) == 0) 
          {
          @:&lt;/tr&gt;
            }
               i++;
           }
  </code></pre>