[TYPO3-mvc] FLUID: if condition with string
Thomas Allmer
at at delusionworld.com
Thu Mar 3 13:22:36 CET 2011
hey
I just tested this and it works like a charm... thx for the hint :)
On 02.03.2011 12:23, Nikolas Hagelstein wrote:
> Am 24.02.2011 02:43, schrieb Stefano Cecere:
>> i know that a
>>
>> <f:if condition="{detail} == 'mystring'">
>>
>> didn't work, because of parsing problems...
>> but is it gonna work in the future?
> Just out of curiosity did you try:
>
> <f:if condition="{0: detail} == {0: 'mystring'}"> ?
>
> The if helper is not capable of comparing strings but it can compare
> array (which is btw. a good workarround for the missing && operator).
--
+---------------------------------+-----------------------------------+
| Thomas Allmer | http://www.delusionworld.com |
| E-mail: at at delusionworld.com | phone: +43 699 16217064 |
+---------------------------------+-----------------------------------+
More information about the TYPO3-project-typo3v4mvc
mailing list