title: Smarty modulus?
body: <p>I'm in a loop to display products... </p>
  
  <p>4 per row, unlimited rows'</p>
  
  <p>I need to know if it's the nth entry... example every 4 items... So I know its the first column as in 
  item 1, item5, item 9 etc... 
  Or last item 
  item 4, item 8, item 12</p>
  
  <p>Tried these where </p>
  
  <pre><code>{foreach from=$sproducts item="product" name="sproducts"}
  {counter assign="bobis" name="bobis"  }
  
  {if $bobis is  div by 4|| $laster ==1}
  {if $bobis mod 4 == 0}
  
   {if $bobis !=4 &amp;&amp; $bobis !=8 &amp;&amp; $bobis != 12}
  </code></pre>
  
  <p>Any simple way?</p>