[Zope] dtml-if and dtml-else with ZPT

Nico de Boer nico@nfg.nl
04 Jun 2002 13:00:36 +0200


Hi all,

I want to create a condition in ZPT. This is the condition in DTML:

<dtml-in "PARENTS[0].objectValues('News')">
<dtml-if "_.sequence-item.id != PARENTS[0].id">
  <a href="<dtml-var absolute_url"><dtml-var menu></a><br />
<dtml-else>
 <dtml-var menu>
</dtml-if>

Can someone translate this in tal-code?

Thanks!

Greetz Nico