[TYPO3-UG Dutch] rekenen met Typoscript

Erwin Winkel erwin.winkel at planet.nl
Tue Dec 2 22:53:55 CET 2008


Hallo usergroup,
ik heb het volgende probleem(pje): Ik wil een simpele berekening uitvoeren
in Typoscript. In TSRef kwam ik het volgende tegen (sectie 1.3):

*Calculating values (+calc):*

*Sometimes a datatype is set to "something +calc". "+calc" indicates that
the value is calculated with "+-/*". Be aware that the operators has no
"weight". The calculation is done in the order of the operators.*
*Example:*

*45 + 34 * 2  = 158 (which is the same as this is ordinary arithmetic:
(45+34)*2=158 )*
Hieruit maak ik op dat het mogelijk moet zijn om een sommetje te maken.
Echter, ik heb geen idee hoe ik dit moet implementeren. Hoe 'zet' ik een
datatype?
Als ik dit probeer:

10.som = TEXT
10.som.value = 10*5

krijg ik als antwoord: 10*5 (wat te verwachten was). Hoe krijg ik het juiste
antwoord '50'?
In de documentatie wordt er verder geen woord over gerept.
Weet iemand hier iets meer over?
Alvast erg bedankt voor alle info.
Groet,
erwin

-- 
"Time flies like an arrow, fruit flies like a banana!"


More information about the TYPO3-UG-dutch mailing list