Answers for "smarty switch case"

PHP
0

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}
Posted by: Guest on October-08-2020

Browse Popular Code Answers by Language