> 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