[Templates] what's the replacement of "gt" in TT?

fayland fayland@gmail.com
Sat, 12 Aug 2006 08:51:33 +0000


quick question:
I use perl like:

if ('2006-08-12 06:32:38' gt '2006-08-11 16:43:41') {
    print 'ok';
} else {
    print 'no';
}

It prints "ok".
but TT seems don't has "gt"? I write something like:

[% IF '2006-08-12 06:32:38' > '2006-08-11 16:51:08' %]
ok
[% ELSE %]
no
[% END %]

It prints "no".

Thanks.

-- 
Fayland Lam // http://www.fayland.org/