Categories > TinyButStrong general >

Adding variables

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Andrew Steven
Date: 2013-01-10
Time: 11:54

Adding variables

Is it possible to use ope= to add two variables together. Our syntax is currently

[onshow.a;ope=add:onshow.b]

...but that doesn't work!
By: Skrol29
Date: 2013-01-10
Time: 13:39

Re: Adding variables

Hi,

Parameter "ope" doesn't support embedded fields.
[var] fields can be placed only in parameters "file", "script", "if", "then", "else" or "when".

TBS does only very simple modification on data. PHP is the best solution for complex operations.
Why don't you do a $c = $a + $b , and then [onshow.b] ?