switch instruction in smarty?

From: Date: Fri, 21 Oct 2005 13:42:48 +0000
Subject: switch instruction in smarty?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13107@lists.php.net to get a copy of this message
Hi, i have a problem with my templates. this is some template... [code] {assign var="foo" value=$smarty.get.bar} {if $foo eq "something"} <tr><td>show my webpage</td></tr> {/if} {if $foo eq "somethingelse"} <tr><td>show another page</td></tr> {/if} ..... ..... [/code] everything is ok when the foo variable eq the $smarty.get.bar but i want to display the default value... ! i want to do in smarty something like switch instruction in php... any suggestion? ps.: sorry 4 my english :P

« previous php.smarty.general (#13107) next »