Template FOR loop
J. Paul Reed
preed at sigkill.com
Wed Aug 6 09:35:51 UTC 2003
On 06 Aug 2003 at 10:26:42, Mark Ingram arranged the bits on my disk to say:
> 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?
Yes. But I don't think that syntax is right.
http://www.template-toolkit.org/docs/plain/index.html
Later,
Paul
------------------------------------------------------------------------
J. Paul Reed -- 0xDF8708F8 || preed at sigkill.com || web.sigkill.com/preed
To hold on to sanity too tight is insane. -- Nick Falzone, Pushing Tin
I use PGP; you should use PGP too... if only to piss off John Ashcroft
More information about the developers
mailing list