How about this?
[% avar = [0,1,2] %][% WHILE avar.size %][% avar.shift %][% END %]
Well, the for me the problem is more complicated: I have iterator which returns numbers: [% WHILE (var = iterator.next) %] ... [% END %] If iterator.next returns 0 the loop fails :(
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
