[Zope] Sequence-Item

Dieter Maurer dieter@handshake.de
Sun, 28 Oct 2001 19:13:11 +0100 (CET)


An FAQ!

Ben Ocean writes:
 > ...
 >   <dtml-if expr="sequence-item==0">
 > ...
 > I get an error that the compiler doesn't recognize the variable *sequence*. 
Inside Python expressions (you explicitly write "expr=" to remind
yourself that you are using a Python expression!),
'-' is not part of a name but the operator minus...

Use 

    <dtml-if expr="_['sequence-item'] == 0">


Dieter