Instead of
[% IF cnt % bar_every = 0 %]
you should use
[% IF cnt % bar_every == 0 %]
as you want to do a comparison, not an assignment.
Cheers, Flo
In reply to Re: TemplateTookit: Regular Intervals in a FOREACH constuct
by rafl
in thread TemplateTookit: Regular Intervals in a FOREACH constuct
by pboin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |