Re: [SMARTY-DEV] : Re: [SMARTY-DEV] simple math
| From: | Monte Ohrt | Date: | Fri, 02 May 2003 21:31:52 +0000 |
| Subject: | Re: [SMARTY-DEV] : Re: [SMARTY-DEV] simple math | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1324@lists.php.net to get a copy of this message | ||
Sounds doable, but that adds yet another syntax to the template. :(
Monte
On Fri, 2003-05-02 at 15:34, boots wrote:
> Monte, this is great.
>
> Of course, everyone will want $var1+$var2. I thought I might suggest
> that to get math functionality without changing the parsing too much,
> the math expression must be enclosed in parens.
>
> ie. $var+1 <== no math
> ($var+1) <== math allowed
>
> Might make $var1+$var2 easier to interpret.
>
> Just an idea.
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
--
Monte Ohrt <monte@ispi.net>