[TYPO3] If not

Daniel Doesburg [netcreators] daniel at netcreators.com
Tue Feb 5 12:51:17 CET 2008


Mauro, Nino,

Therefor we have the else statement

[condition]
statements
[else]
statements
[end]

It is in the TSref but not so very easy to find.

OR

[globalVar = TSFE:id < 1][globalVar = TSFE:id > 1]

OR (not sure and untested)

[globalVar = TSFE:id<1,TSFE:id>1]

Regards,

Daniel Doesburg

Mauro Lorenzutti schreef:
> Hi Nino,
> 
>> Hi,
>>
>> I use this:
>>
>> [globalVar = TSFE:id = 1]
>>
>> some TS
>>
>> [end]
>>
>> to simulate if pid = 1 then something
>>
>> How can i simulate if pid != 1 ?
>>   
> 
> Let's explain it through an example:
> 
> lib.text.value = DEFAULT VALUE
> 
> [globalVar = TSFE:id = 1]
> lib.text.value = CUSTOM VALUE PER UID = 1
> [end]
> 
> the lib.text.value will be overwritten only if condition is true. If 
> not, the default value will be maintained.
> 
> Regards,
> 


More information about the TYPO3-english mailing list