>>>>> "dark0s" == dark0s <[email protected]> writes:
dark0s> I need to use for statement. dark0s> Exist it for statement and not foreach in TT2. Like Perl, Template's FOR and FOREACH are interchangeable, and represent the Perl "foreach" (iterate a variable through a list). There doesn't appear to be an equivalent to the 3-arg Perl "for" statement, although for the common cases, you can just do the math: [% FOR n IN [1..10]; ... ; END %] -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
