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: [EMAIL PROTECTED]
------------------------------------------------------

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to