> > I will need to use the $counter variable later on in the script.

Oh sorry, forgot that one...

Inside your loop, you can do:
<dtml-if sequence-end>
<dtml-call "REQUEST.set('counter',_['sequence-number'])">

But then again, this would only give the _total_ number of iterations that 
have been made. If you only need this number :-), then please forget 
everything that I wrote, and just use

Since you can't break out of a dtml-in, the number of iterations that will be 
made will always be equal to the number of items ("length") in your sequence.


P.S.: All this should be on [EMAIL PROTECTED], rather than zope-dev

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to