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

Dieter Maurer dieter@handshake.de
Fri, 14 Jun 2002 21:06:12 +0200


Roger Erens writes:
 > 
 > >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
 > 
 > Could someone expand on *why* the if/then/else construct is not literally 
 > possible in ZPT?
Search the ZPT mailing list archive.
It was explained there in length...


Dieter