7 Jun
2000
7 Jun
'00
5:41 p.m.
On Wed, Jun 07, 2000 at 06:14:22PM +0200, QUIN Frédéric wrote:
I would like to know if there is a function which allows to know if a list contains a specified item.
Fred, You can use Python's "x in list" syntax as follows <dtml-let list="[1, 'a']"> <dtml-if "1 in list"> ... </dtml-if> . . <dtml-if "'a' in list"> ... </dtml-if> </dtml-let> ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------