[TYPO3-english] R: R: condition operators in TSREF
François Suter
fsu-lists at cobweb.ch
Sat Oct 23 10:47:43 CEST 2010
Hi Riccardo,
> This DOES NOT WORK
> [globalVar=TSFE:id=52]&&[dayofyear<365]
> page.1=HTML
> page.1.value=Hello world
> [global]
> NEITHER THIS
> [globalVar=TSFE:id=52]&&[dayofyear<=365]
> page.1=HTML
> page.1.value=Hello world
> [global]
TS conditions can be very confusing indeed, especially due to the
horribly weird syntax that they use. There *must* be an "="operator all
the time, between the variable to be tested and the condition itself.
The condition itself uses a comparison operator. So the right syntax for:
[dayofyear<365]
is:
[dayofyear = <365]
I've added blanks so that the separation is clearer. For your second
case, the proper syntax is:
[dayofyear = <=365]
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-english
mailing list