[TYPO3-mvc] FLUID: if condition with string

Nikolas Hagelstein lists at shr.cc
Wed Mar 2 12:23:53 CET 2011


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).

Cheers,
Nikolas


More information about the TYPO3-project-typo3v4mvc mailing list