Re: [htmltmpl] H::T::Expr with multiple or
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2005-02-25 13:45:42
|
On Fri, 25 Feb 2005, Thomas Gutzler wrote: > it looks a bit dodgy to me, that > <TMPL_IF EXPR="(foo eq 'bar') || (foo eq 'bar2')"> > works well but > <TMPL_IF EXPR="(foo eq 'bar') || (foo eq 'bar2') || (foo eq 'bar3')"> > has to be written as > <TMPL_IF EXPR="((foo eq 'bar') || (foo eq 'bar2')) || (foo eq 'bar3')"> > to get it working. > Is that a known bug or meant to be as a feature? :) It's a known bug - one that I nearly solved last month but didn't finish. You can read about it here: http://perlmonks.org/?node_id=414823 I think jryan's suggestion is correct and seemed to be working well... and then I got distracted. I hope to get back to it sometime soon. -sam |