[Zope] TAL: test() or condition Howto?

Dylan Reinhardt zope@dylanreinhardt.com
Fri, 31 Jan 2003 07:49:25 -0800


At 06:33 AM 1/31/2003, Ivo van der Wijk wrote:
>My advice would be to use a pythonscript.

Ditto to that... it's trivial in Python:

if myImportantCondition:
    return myExpensiveMethod or myDefaultValue
return myDefaultValue

Where those tokens are expanded into something meaningful, of course... :-)

Dylan