[Zope] dtml-in syntax
Kyle Burnett
kburnett@ep.newtimes.com
Sat, 29 Jul 2000 13:52:26 -0500
so i have this loop and i want to count a variable:
<dtml-in wherever>
<dtml-if sequence-start>
<dtml-var count-id>
</dtml-if>
</dtml-in>
but what i really want to count is specific values for id. so let's say
id=='value1', i want to try and do the following:
<dtml-in wherever>
<dtml-if sequence-start>
<dtml-var "count-id=='value1'">
</dtml-if>
</dtml-in>
but no luck. and i have tried several other make-shift syntaxes to no avail.
i do have some other logic that i could use over the course of the loop to
determine the count of distinct values but i was try to do it in far less
code.
anyone got an idea of how to rig this?
thanks in advance,
kyle