Re: [SMARTY] {if statement problem upgrading to 4.2.2}
| From: | Monte Ohrt | Date: | Wed, 12 Feb 2003 22:13:49 +0000 |
| Subject: | Re: [SMARTY] {if statement problem upgrading to 4.2.2} | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7702@lists.php.net to get a copy of this message | ||
That would be a bug, and a fix is committed to CVS.
On Wed, 2003-02-12 at 16:03, Ubaldo Huerta wrote:
> The following statement
>
> {if $my_var >= 5.5 }
>
> used to work in smarty 2.1.3 but now it needs quotes for it to work in the
> latest version 2.4.2
>
> {if $my_var >= "5.5" }
>
> otherwise you get:
> Parse error: parse error, unexpected T_DNUMBER in ......
>
> Excerpt from the current documentation suggest that constants without "" are
> allowed
>
> >>>>>>>>>>>>>>>>>>>>>
> {* parenthesis are allowed *}
> {if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#}
> ...
> {/if}
> >>>>>>>>>>>>>>>>>>>>>
>
> ubaldo
> www.loquo.com
--
Monte Ohrt <monte@ispi.net>