[Zope] newbie dtml/zCatalog???

Jonathan Park jpark@amazingmedia.com
Wed, 26 Apr 2000 16:27:54 -0400


hello everyone,
  I guess I don't know much about dtml-if statements.
  I was wondering how I could write a dtml if loop in zope to alternate the
color of the cell for the results page in after a search.

how would I translate this logic into dtml?:

var = 0
if((var%2))==1)
 then
   color="#dddddd"
   var = var + 1
 else
  var ="#ffffff"
  var = var + 1

Thanks ahead!

-jon