logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Re: what's the replacement of "gt" in TT?: msg#00055

Subject: Re: Re: what's the replacement of "gt" in TT?
----- Original Message ----- 
From: "fayland" <fayland-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
To: <templates-MnLy+PD7ppGDO3lXZvfOKmD2FQJk+8+b@xxxxxxxxxxxxxxxx>
Sent: Saturday, August 12, 2006 5:05 AM
Subject: [Templates] Re: what's the replacement of "gt" in TT?


> fayland wrote:
> > 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.
> >
>
> It seems that
>
http://search.cpan.org/~tanimoto/Template-Plugin-String-Compare-0.01/lib/Template/Plugin/String/Compare.pm
> can help me out.
>
> Thanks any way.
>
> -- 
> Fayland Lam // http://www.fayland.org/
>
>
>
Also see Template::Plugin::Date



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>