>On Fri, Sep 22, 2000 at 12:39:52PM -0500, Spicklemire, Jerry wrote:
>> I'm about searched out trying to find any discussion about calling a
normal 
>> "continue" statement, as in Python, from DTML. Any ideas?
>> 
>> I just want to short circuit a dtml-in loop for one pass, and then finish
>> the rest of the loop, based on a parameter.

to which Martijn replied:
> There isn't, other than using a nested <dtml-if>. You could also use 
> a <dtml-try><dtml-except> and <dtml-raise> combo, where raising an 
> exception would take you to the except clause and then out.

Thanks Martijn,

It dawned on me that, since I'm iterating through a temporary list, 
it is simpler to test the parameter once, and delete non-valid list 
members prior to the loop. That eliminates testing during every pass.

Later,
Jerry S.

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

Reply via email to