Re: [SMARTY] if statement with OR/AND
| From: | Monte Ohrt | Date: | Thu, 06 Feb 2003 14:38:13 +0000 |
| Subject: | Re: [SMARTY] if statement with OR/AND | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7549@lists.php.net to get a copy of this message | ||
You don't want to change the case of the actual token, otherwise your
variables will go from $my_Var to $MY_VAR. Just use strtolower for
comparison.
switch (strtolower($token)) {}
This is committed.
Monte
On Wed, 2003-02-05 at 18:20, Rainer Collet wrote:
> > Changes committed to CVS, see if that works for you.
> >
> > Monte
>
> thanks very much! inserts and nested fetches now work, but now i have a
> compatibility problem, too ;-)
>
> if statments only work with "and" or "or" and not with "AND" or
> "OR". this
> were different in earlier versions.
>
> here is the patch against current cvs:
>
> 1104a1105
> > $token = strtolower($token);
>
>
> rainer
--
Monte Ohrt <monte@ispi.net>