[TYPO3] Math in TypoScript

Bertalan Fodor berfod at organum.hu
Thu Feb 22 15:25:13 CET 2007


Note I'm trying to define constants calculated from each other.

Do you know that there is information about what I need in TSRef, or do 
you only hope so? I have searched in TSRef for the word "calcul", and 
have read everything. So did I try setting x2 = 13 + 5, but didn't work.

Because these are constants: should I set the type, because otherwise it 
is interpreted as text?  I tried that either. (in the comment, using 
type) Note there is nothing about constant types in TSRef.

Thanks,

Bert

Dmitry Dulepov i'rta:
> Bertalan Fodor wrote:
>> Hi, I want to write something like this
>>
>> x = 10
>> y = 20
>>
>> x2 = {$x} + 3
>> y2 = {$y} + 5
>>
>> Can I do this? Because it seems for me that this format doesn't work.
> 
> I could quote TSRef about calculation but it would be too much text. 
> Just go and read in TSRef.
> 


More information about the TYPO3-english mailing list