[Zope] How to skip processing the rest of a dtml document?
Robert Wohlfahrt
wohlfahr-list@sachsen-net.com
Thu, 20 Jul 2000 14:24:02 +0200
Hi,
> But if one of de if clauses evaluates true, I like it returns for example a
> sentences displaying an error.
Try to use something like a flag:
<html>
<head>
<dtml-if expression1>
<dtml-call "REQUEST.set('myFlag',1)">
... do something ...
</dtml-if>
<dtml-if expression2>
<dtml-call "REQUEST.set('myFlag',1)">
... do some othe stuff ...
</dtml-if>
</head>
<body>
<dtml-if myFlag>
Say something about expression1 or 2 ...
<dtml-else>
Say the other stuff ...
</dtml-if>
</body>
</html>
--
Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com)
Tel: 0179 / 2980074 Fax: 0351 / 2880145