[TYPO3-dev] Math in TS

Oliver Leitner shadow333 at gmail.com
Thu Jan 29 15:17:59 CET 2009


man, you must be bored;p


On Thu, Jan 29, 2009 at 3:12 PM, Roberto Presedo - Cobweb
<rpresedo at cobweb.ch> wrote:

> 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...
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



-- 
Oliver Leitner
http://www.neverslair-blog.net




More information about the TYPO3-dev mailing list