[Zope] sequence- variables
Bo Granlund
granbo@uiah.fi
Tue, 11 Jun 2002 22:33:38 +0300
On Tue, Jun 11, 2002 at 12:16:27PM -0700, D. Rick Anderson wrote:
> How can I use the sequence variables for something other than rendering?
> I can do a <dtml-var sequence-number> and it will render the current
> sequence number just fine, but if I do a <dtml-if "sequence-number ==
> numberVariable"> it barfs. It also barfs if I try to assign it to
> another variable. What am I doing wrong?
You can't have the "-" char in a name, so you have to use this magic:
<dtml-if "_['sequence-number'] == numberVariable">
...
</dtml-if>
peace,
Bo