[TYPO3-dev] Math in TS

Roberto Presedo - Cobweb rpresedo at cobweb.ch
Thu Jan 29 15:12:04 CET 2009


Hello

I'm trying to make a small calcul in TS, but I can't get it...

Here is the code I try :
____________________________________
value = ({field:resultnumber}-1)
insertData = 1
____________________________________
Result -> (1-1) when what I want is a 0 :S

I try using prioriCalc
____________________________________
value = ({field:resultnumber}-1)
insertData = 1
prioriCalc = 1
____________________________________
Result -1 :( no matter what is the value of field:resultnumber

Is it because field:resultnumber is not an integer ?
If so, how to convert it in an integer ?

Thanks

PS : this is my first post... sorry if it's the wrong place to post...




More information about the TYPO3-dev mailing list