[TYPO3-mvc] if-ViewHelper - Multiple conditions with logical and/or?

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Jan 30 11:51:32 CET 2010


Hi,

> I wan't to do something like this:
>
> <f:if condition="{object.value1} || {object.value2}">
>     <!-- do something -->
> </f:if>
>
> This would need much less lines of code than an equivalent nesting of
> different then / else blocks.

AFAIK this should work. The validation of the condition is not done 
inside the if-viewHelper itself but done automatically on validation of 
the arguments that get passed to the viewHelper.
-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list