I need a to create a simple counter variable that will store the number of
iterations by a dtml-in structure. I have yet to find a way how to do
this in zope. Here is an example (in perl) of what I need to do:
@bar = (sara,jane,kate);
foreach $foo (@bar) {
print $foo\n;
$counter
On Wednesday 19 December 2001 10:11, Jon Erickson wrote:
I need a to create a simple counter variable that will store the number of
iterations by a dtml-in structure. I have yet to find a way how to do
this in zope. Here is an example (in perl) of what I need to do:
The number of iterations
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'])
/dtml-if
But then again, this would only give the _total_ number of iterations that
have