[Zope] How can I use 'sequence-item' in <dtml-if> tag ?

sam gendler sgendler@akamai.com
Fri, 23 Mar 2001 23:16:56 -0800


"Anton A. Zotov" wrote:

> Hello again,
>
> How can I permit such an operation in DTML-method: (see pseudo-code):
> <dtml-in...>
> IF sequence-item EQUALS something then bla-bla-bla
> </dtml-in>
>
> I tried
> <dtml-if "sequence-item=='bla-bla'"> It won't work. Zope thinks sequence is
> a different variable.

This is covered in the docs, so I would suggest that you review them before
you continue, but you can reference sequence-item in an expression as
_['sequence-item']

--sam



>
>
> Thanks in advance
>
> Anton
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

--
------------------------------------------------------
"If you believe everything you read, better not read."
                                q   --Japanese proverb