{if statement problem upgrading to 4.2.2}

From: Date: Wed, 12 Feb 2003 22:03:52 +0000
Subject: {if statement problem upgrading to 4.2.2}
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7701@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#7701) next »