[Zope] sequence-number math
Passin, Tom
tpassin at mitretek.org
Tue Oct 14 16:19:51 EDT 2003
[hpinson at indepthl.com]
>
> >> btw. do you want to achieve with the above expression?
>
> Hi Tino-- just some if then logic and text substitution, ie.
>
> Grade 0 becomes Grade K
>
> where 0 is kindergarten, 1 is grade 1, etc.
>
> The grade is the same as the sequence number.
>
I'd try something like this -
<dtml-let grades="'K123456789'''>
<dtml-in "whatever-it-is'>
Grade <dtml-var "grades[_['sequence-index']]">
</dtml-in>
</dtml-let>
Cheers,
Tom P
More information about the Zope
mailing list