[TYPO3-english] correct use of condition "version"

Daniel Doesburg | DOESBURG.BIZ daniel at typo3-nl.eu
Fri Aug 12 11:22:11 CEST 2011


Hi Bart,

Thanks for your answer.

That, indeed, also was my first solution.
But . . .

I made:
[browser = msie] && [version = 7]
[else]
	snippet
[end]

But now, for every browser other than IE also the else branch is taken.

As far as I know it's not possible to nest conditions and no "elseif" :-(


Kind regards,

Daniel




Dubelaar, Bart schreef:
> Put it in the [else] part of your condition. There is an example that matches your case in the core doc:
>
> [browser=netscape]
>
> page.10.value = Netscape
> [else]
>
> page.10.value = Not a netscape browser!
> [end]
>
> See: http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.1.0/view/1/2/
>
> Best regards,
>
>
> Bart
>
>> -----Original Message-----
>> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
>> bounces at lists.typo3.org] On Behalf Of Daniel Doesburg | DOESBURG.BIZ
>> Sent: vrijdag 12 augustus 2011 10:10
>> To: typo3-english at lists.typo3.org
>> Subject: [TYPO3-english] correct use of condition "version"
>>
>> Hi,
>>
>> I've a problem. Of course. :-) Or better, a question.
>>
>> What is the right condition for every browser that is a IE but not
>> version 7?
>>
>> In TSref:
>>
>> version
>> Syntax:
>> [version = value1,>value2, =value3,<value4, ...]
>>
>> So there is no "unequal".
>>
>> But what happens if I make 2 conditions? One for<7 and one for>7?
>>
>> What if the version is (say) 7.1 (if that's possible)?
>>
>> I wonder.
>>
>> Kind regards,
>>
>> Daniel
>>
>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>



More information about the TYPO3-english mailing list