Daniela Wersin wrote: > I want to prevent > components to appear in that list whose name begins with "Z -". How do I > do that? > > <td> > <select name="component" onchange="set_assign_to();" size="5"> > [%- FOREACH c = product.components %]
[% NEXT IF c.name.match('^Z') %] (or put the inner block in an UNLESS c.name.match('^Z') ... END block) HTH A _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates