[TYPO3] If not

Nino Katic DELETE_MEnkatic at jagor.srce.hr
Tue Feb 5 13:05:41 CET 2008


Thx. Daniel, this works.

Nino


"Daniel Doesburg [netcreators]" <daniel at netcreators.com> wrote in message 
news:mailman.1.1202212266.19403.typo3-english at lists.netfielders.de...
> 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