ViewHelper Documentation
v:switch
    Switch ViewHelper
Fluid implementation of PHP's switch($value) construct.
Example
<v:switch value="{variable}">
    <v:case case="someValue" break="TRUE">
        <!-- do whatever, if {variable} == 'someValue' -->
    </v:case>
    <v:case case="default">
        <!-- the case "default" is a reserved keyword which acts as the default case. -->
    </v:case>
</v:switch>
Arguments
value string, required
Variable on which to switch - string, integer or number
as string, required
If specified, inserts the matched case tag content as variable using name from "as"