On Wed, 20 Jul 2005 17:45:24 -0700 (PDT) JustSome person
<[EMAIL PROTECTED]> wrote:
>
> Hey all,
>
> I have some html that I want to repeat 1x only if a
> certain condition is met, otherwise repeat how many
> times it has to ala...
>
> ...
Often its helpful to change the loop condition, something like:
IF thisvar == 1;
LOOPOVER = [ 'whatever' ];
ELSE; # if needed
LOOPOVER = somecode;
END;
FOREACH xy= LOOPOVER;
some html code
END;
--
Matthias
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates