switch case in smarty code example
Example: smarty switch case
{*
There is no switch in Smarty
Use if-statement, plugin or php instead
*}
{if $case1_as_condition}
Case 1
{elseif $case2_as_condition}
Case 2, etc
{else}
Default
{/if}
{*
There is no switch in Smarty
Use if-statement, plugin or php instead
*}
{if $case1_as_condition}
Case 1
{elseif $case2_as_condition}
Case 2, etc
{else}
Default
{/if}