[TYPO3-mvc] fluid if string condition
Dawid Pacholczyk
dpacholczyk at gmail.com
Tue Jan 4 18:50:54 CET 2011
Ofc I had to find solution 5 sec after sending this question :)
<f:if condition="{myvar}">
Displayed if myvar is neither an empty string nor "0".
</f:if>
Best regards,
Dawid "Fixus" Pacholczyk
On 04.01.2011 18:48, Dawid Pacholczyk wrote:
> Hello List !
>
> In my template I would like to check if variable of type string has a
> value diffrent than empty string.
>
> Something like that
>
> if($variable != '')
> echo $variable;
>
> I`ve tried
>
> <f:if condition="{variable} != ''">
> <f:then>
> {variable}
> </f:then>
> </f:if>
>
> But it didn`t work
>
> Is it possible in fluid ?
>
> Best regards,
> Dawid Pacholczyk
More information about the TYPO3-project-typo3v4mvc
mailing list