smarty switch case

Solutions on MaxInterview for smarty switch case by the best coders in the world

showing results for - "smarty switch case"
Elen
16 May 2016
1{* 
2	There is no switch in Smarty 
3	Use if-statement, plugin or php instead
4*}
5
6{if $case1_as_condition}
7   Case 1
8{elseif $case2_as_condition}
9   Case 2, etc
10{else}
11   Default
12{/if}