[% message %] This is how you count to three: [% FOREACH i = [1 .. 3] %] [% i %] ... [% END %] Wasn't that easy?