[TYPO3-mvc] How to use If-ViewHelper with other than true/false

Sebastian KurfŸürst sebastian at typo3.org
Wed Jun 10 08:08:04 CEST 2009


Hi Michel,

> I would need string comparison to add style to the selected item in a menu.
> 
>         <li <f:if condition="{category.uid} == 
> {currentCat}">class="current"</f:if> >{category.name}</li>
That of course works :-) Maybe I was not precise enough in what I wrote:
String comparison with _literal_ Strings does not work, i.e. 
{some.value} == 'blablubb'

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list