William JOYE writes:
> I'm a newbie in zope. I think is a simple problem but I can find a solution.
> I would like to show 2 lists (ex: list1 and list2) like this :
>
> list1 = 1, 2, 3,...
> list2 = A, B, C,...
>
> list1 + list2 =
>
> 1 A
> 2 B
> 3 C
>
> How can I iterate 2 lits in one dtml-in ?
<dtml_in "_.range(0,_.len(list1))">
<dtml-let index=sequence-item>
<dtml-var "list1[index]"> <dtml-var "list2[index]"><br>
</dtml-let>
</dtml-in>
This will work for lists up to 999 elements.
Dieter
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
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 )