Well that isnt a string per-se,
its a date...

pirint "good\n" if ( '2004-11-23' < '2004-11-26' );

doesnt print good either...

use the date plugin in particular say

the interface to Date::Calc

and turn the dates into unix epochs that you can compare

Oleg Burlaca wrote:

Hi!

How can I compare two strings in TT ?


-------------------- the following tmpl doesn't show 'Good':

[% IF '2004-11-23' < '2004-11-26' %]
Good
[% END %]
-------------------

how to use 'lt' ?

Thanks


_______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates




begin:vcard
fn:Sean T. Allen
n:Allen;Sean T.
org:USA Herbals, LLC
email;internet:[EMAIL PROTECTED]
title:Tech Guru
tel;work:718-388-5424
x-mozilla-html:FALSE
version:2.1
end:vcard

Reply via email to