[Zope] [DTML] creating variables
   
    David Ascher
     
    da@ski.org
       
    Fri, 5 Mar 1999 13:45:06 -0800 (Pacific Standard Time)
    
    
  
I need to detect not only whether a list is empty (that's easy with the
#if tag for example), but also whether all of the elements in the list
have a property. In Python, one could do this with something like:
  empty = 1
  for element in theList:
    if not element.hidden: empty = 0
    print element
  if theList and not empty:
    print "no non-hidden elements"
What's the equivalent DTML?  Can one create a variable in DTML?
Can anyone tell I miss my Python when writing DTML? =)