Try using <dtml-if "_['sequence-item']==... instead of <dtml-if "sequence-item==.... Ben Ocean wrote:
Hi; I have this code:
<dtml-if expr="number_attendees==1"> Thank you, <dtml-var first_name>. Please tell us about the attendee...<br> <br> <dtml-else> Thank you, <dtml-var first_name>. Please tell us about the attendees...<br> <br> </dtml-if> <dtml-in expr="_.range(number_attendees)"> <dtml-if expr="sequence-item==0"> <dtml-var sequence-item>st Attendee:<br> <dtml-elif expr="sequence-item==1"> <dtml-var sequence-item>nd Attendee:<br> <dtml-elif expr="sequence-item==2"> <dtml-var sequence-item>rd Attendee:<br> <dtml-else> <dtml-var sequence-item>th Attendee:<br> </dtml-if> </dtml-in>
I get an error that the compiler doesn't recognize the variable *sequence*. Apparently, I'm not properly communicating to Zope that I'm trying to call the variable *sequence-item* and that it should be iterating through the loop. How do I do this correctly? TIA, BenO
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: e.disomma@icube.it WWW: www.icube.it Tel: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588