[Zope] if text: display text else icon with tal

Dieter Maurer dieter@handshake.de
Thu, 13 Jun 2002 21:01:46 +0200


Nico de Boer writes:
 > ... if/else idiom in ZPT ...
When you want:

     if cond then XXXX else YYYY

you can use in ZPT:

    <tal:div tal:condition="cond">XXXX</tal:div>
    <tal:div tal:condition="not:cond">YYYY</tal:div>

To check for existence, you can use "exists: path".


Dieter