[TYPO3-mvc] fluid if string condition

Dawid Pacholczyk dpacholczyk at gmail.com
Tue Jan 4 18:48:13 CET 2011


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