The variable is defined in the variable list passed in to the TT2 process
method. Maybe it behaves differently in that case?

On Thu, 4 Dec 2003 12:51:48 -0800 (PST) Jeff Anderson <[EMAIL PROTECTED]>
wrote:

> Hmmm, i just ran this through tpage v2.57:
> 
> [% method = 'vie' %]
> [% IF method != 'view' %]
> hello
> [% END %]
> 
> and it worked ...
> 
> jeffa
> 
> --- Scott Weisman <[EMAIL PROTECTED]> wrote:
> > I'm not sure if this is already known or has
> > been covered before, but you
> > can't use a variable named "method" in TT2.
> > 
> > I had a line that TT2 choked on, like this:
> > 
> > [% IF method != 'view' %]
> > 
> > As soon as I changed method to meth (or any
> > other valid name) things worked
> > fine.
> > 
> > Is this a bug? It certainly isn't documented
> > and doesn't seem like a feature.
> > 
> > Scott
> > 
> > _______________________________________________
> > templates mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.template-toolkit.org/mailman/listinfo/templates
> 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
> 

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

Reply via email to