I guess you guys are correct. It looked strange to me too, and I thought I had copied my code correctly, but I guess I hadn't.
Thanks! On Thu, Aug 13, 2009 at 1:03 PM, Clinton Gormley<[email protected]> wrote: > >> The problem is that the ELSE is being matched with the outer IF, not >> the inner IF. > > I haven't seen that before, but in your code, you are missing an END: > > [% FOREACH x = aList %] > [% > IF loop.index > 0; > a = ...; > b = ...; > c = ...; > IF x.disabled; > show_disabled_row(...); > ELSE; > show_normal_row(...); > END; > END; ### was missing > %] > [% END %] > > hth > > clint >> >> How can I write this so that TT will match the ELSE with the second IF? >> >> Thanks, >> ER >> >> _______________________________________________ >> templates mailing list >> [email protected] >> http://mail.template-toolkit.org/mailman/listinfo/templates > > _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
