Simple math request

From: Date: Tue, 06 Apr 2004 10:33:16 +0000
Subject: Simple math request
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2262@lists.php.net to get a copy of this message
Hi! {$var-5} works, but {5-$var} or {-$var) doesn't. {assign var='var2' value=$var-5} works, but value=5-$var or value=-$var doesn't (value=-$var can accidentally work because of string interpretation). Is it possible to implement at least in parameters? WBR, Konstantin A. Pelepelin

« previous php.smarty.dev (#2262) next »