I for one don't quite understand why/how you want to use this, but
probably a simple way is to use a variable:

[% SET condition = something | eval; IF condition %]
...
[% END %]

Could you better explain your intentions...?

-M.

> ---------- Original Message ----------
> From: Michael Wichmann <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Thursday, October 30, 2008 / 10:45am GMT
> Subject: [Templates] Applying Filters in an IF condition
> 
> Hi there,
> 
> today I am stuck with the following problem:
> 
> I would like to evaluate TT Code in an IF statement like this:
> 
> [% IF filter | eval %]
> ...
> [% END %]
> 
> where eval would be something like this: 'NOT profile.locked'
> 
> So I could process a table block with various conditions.
> 
> Maybe I am off the track with this approach...
> 
> Thanks for any help.
> 
> Michael
> 
> 
> ________________________________________________________________________
> n 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
> Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114
> 
> 
> _______________________________________________
> 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

Reply via email to