[Zope] Looping in DTML

craigv@jps.net craigv@jps.net
Mon, 16 Aug 1999 22:12:57 -0700


Is there any way to do looping from within DTML? For example, I'd like to execute a method a certain number of times using a counter. Here's some pseudo-code to demonstrate:

<!--#while "i < total_count"-->
  <!--#call some_method-->
  <!--#call "REQUEST.set('i', i+1)"-->
<!--#/while-->

If I can do looping, is there a way to break out of a loop?

Thanks in advance.