[Zope] sequence of numbers

Paul Everitt Paul@digicool.com
Sat, 13 Mar 1999 09:29:59 -0500


Bill wrote:
> What I want to do is given a limit number, iterate over a sequence of
> DTML commands. This would be an obvious use for #in (which I'm using
> elsewhere for other things) except I don't have a sequence - just the
> number of items in the sequence, as it were.

Here's a brute-force way to do it, as long as the list of items was
short:

<!--#call "REQUEST.set('foo',['1',
                       '2','3','4','5'])"-->

<!--#in foo-->
  <!--#var sequence-item--><br>
<!--#/in-->

--Paul