[Zope] To Switch or not to Switch

Paulo Eduardo Neves neves@email.com
Mon, 13 Sep 1999 17:59:09 -0300


Arnaud Lecat wrote:
> 
> Hi
> 
> Is there a substitute function to the switch() function or must I do a
> cascade of if... else... stuff ?

Use elif:
<dtml-if "cond=1">
   ****
<dtml-elif "cond>1">
   ****
<dtml-elif "cond < 0">
   ****
</dtml-if>

regards,
-- 
Paulo Eduardo Neves
maito:neves@email.com
Rio de Janeiro - Brasil