Re: [SMARTY-DEV] Re: simple math

From: Date: Fri, 02 May 2003 19:05:27 +0000
Subject: Re: [SMARTY-DEV] Re: simple math
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1322@lists.php.net to get a copy of this message
On Fri, 2003-05-02 at 13:57, Joscha Feth wrote: > Monte Ohrt wrote: > > As an experiment :-) I committed simple math operators on variables. > > I'd like thoughts on it, try it out. > > I'd like to have: > > {$var1+$var2} It quite a bit more complicated to get that to work since it is not a single variable. The simple one just tacks the math on as part of a variable name. You can still get the job done with a modifier: {$var|add:$var2} > > and > > {$var*-1} seems not to work... fixed in CVS. > > greets, > Joscha -- Monte Ohrt <monte@ispi.net>

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