Template FOR loop
Mark Ingram
mark.ingram at nexsan.com
Wed Aug 6 09:26:42 UTC 2003
Hi,
is it possible to have a standard for loop in the template files?
and also, is it possible to do modulus calculations?
ie, if there are 25 bugs, i want every 5th bug.
ie.
[% FOR (i = 0; i < num_bugs; i++) %]
[% IF mod(i/5) = 0 %]
Do something here<br>
[% END %]
[% END %]
Is any of that possible?
Thanks.
Best Regards,
Mark Ingram
Software Engineer
Nexsan Technologies
33 - 35 Parker Centre
Mansfield Road
Derby
DE21 4SZ
More information about the developers
mailing list