f:case

This ViewHelper is part of the use case for f:switch. Where the value of this tag matches the value in the f:switch tag, the content of this tag will be rendered and output.

Properties

Exclusive properties of this ViewHelper:

value

Variable type
Mixed
Description
The value against which the value from the f:switch ViewHelper should be compared.
Mandatory
Yes

Example

See the example for the viewhelper 'switch'.

Deprecation

The usage of this ViewHelper for the default case in the following manner is deprecated and will be removed in TYPO3 v9. Use DefaultCaseViewHelper instead.

Old, deprecated:

<f:case default="TRUE">Foo</f:case>

New:

<f:defaultCase>Foo</f:defaultCase>