Could not find any match !

FMX:SWITCH -

Freemarker equivalent: switch

fmx:switch only exists as a dedicated xml element. It essentially corresponds to the Freemarker code.

Options

Dedicated xml element


<fmx:switch fmx:value="model.type">
    <fmx:case fmx:value="'A'">
        <p>A</p>
    </fmx:case>
    <fmx:case fmx:value="'B'">
        <p>B</p>
    </fmx:case>
    <fmx:default>
        <p>DEFAULT</p>
    </fmx:default>
</fmx:switch>

[#switch model.type]
    [#case 'A']
        

A

[#break] [#case 'B']

B

[#break] [#defaut]

DEFAULT

[/#switch]