Categories > TinyButStrong general >

calculate numeric values

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: hozyali
Date: 2010-08-06
Time: 23:58

calculate numeric values

can you please advise how do I calculate either sum, divide, multi or minus two variables in the TBS html?

thanks
By: Skrol29
Date: 2010-08-09
Time: 11:37

Re: calculate numeric values

Hi,

Divide, multiply plus and minor can be done by parameter "ope". (see the manual).
Sum is an operation over a set of data, it can be done using the Aggregate plugin.

For more complicated calculation, that's out of the template engine's work and it should be done at the PHP side.
By: Anonymous
Date: 2010-08-09
Time: 12:01

Re: calculate numeric values

Hi Skrol

thanks very much for all your help.

I had to switch to Smarty because they have a lot of users, examples and very good documentation.

thanks again.