[Zope] Else branch for Page Template conditions

Andreas Tille tillea@rki.de
Fri, 27 Sep 2002 09:26:39 +0200 (CEST)


Hi,

while looking for examples using

       tal:condition

I just find solutions for an else branch.  For instance I want to
do something like that

       <span tal:condition="options/name | nothing"
         tal:content="options/name">Print here variable name.</span>

If variable "name" exists print it but I'm seeking for something like

       else print "name does not exist"

Even better would be a method to set variable name to a default value
if it does not exist before the test above and print the stuff
unconditionally.

Kind regards

        Andreas.