[Templates] loop question

2001-10-31 Thread Viljo Marrandi
Hello, I know there must be a simple solution for this problem, but i didn't find it in docs. How can i print out inside FOREACH loop (or WHILE or WHATEVER) how many loops it has already done? Is there some kinda counter which counts it? Basically I'd like to get something like this: [% FOREAC

Re: [Templates] loop question

2001-10-31 Thread Chris Winters
* Viljo Marrandi ([EMAIL PROTECTED]) [011031 06:32]: > I know there must be a simple solution for this problem, but i didn't > find it in docs. > > How can i print out inside FOREACH loop (or WHILE or WHATEVER) how many > loops it has already done? Is there some kinda counter which counts it? >

Re: [Templates] loop question

2001-10-31 Thread Simon Wilcox
On Wed, 31 Oct 2001, Viljo Marrandi wrote: > Hello, > > I know there must be a simple solution for this problem, but i didn't > find it in docs. Look in Template::Manual::Directives under FOREACH > How can i print out inside FOREACH loop (or WHILE or WHATEVER) how many > loops it has already do