[TYPO3-mvc] <f:elseif condition="">

Martin Kutschker masi-no at spam-typo3.org
Tue Aug 10 12:05:46 CEST 2010


Am 10.08.2010 11:23, schrieb Franz Koch:
> 
> // mixed usecase with condition support in cases
> <x:switch return="firstMatch/allMatches">
>     <x:case condition="{matchValue} = 1">gimme</x:case>
>     <x:case condition="{f:count(subject:whatever)}">someting</x:case>
>     <x:case default="true">fallback</x:case>
> </x:switch>
> 
> switch/case might not be the best naming for the last usecase, but didn't find a better one back then.

"elseif" seems to me to be easier to understand. That is if you don't want to you the "allMatches"
feature. But this is a bit weird anyway ;)

Masi


More information about the TYPO3-project-typo3v4mvc mailing list