Template FOR loop

Mark Ingram mark.ingram at nexsan.com
Wed Aug 6 09:26:42 UTC 2003


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.


[% FOR (i = 0; i < num_bugs; i++) %]
	[% IF mod(i/5) = 0 %]
		Do something here<br>
	[% END %]
[% END %]

Is any of that possible?


Best Regards,

Mark Ingram
Software Engineer
Nexsan Technologies
33 - 35 Parker Centre
Mansfield Road
DE21 4SZ 

More information about the developers mailing list