Re: [SMARTY] Smarty + Switch & Case?
| From: | Nagger | Date: | Sat, 05 Apr 2003 22:31:50 +0000 |
| Subject: | Re: [SMARTY] Smarty + Switch & Case? | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9132@lists.php.net to get a copy of this message | ||
unfortunatly there is no "switch".
you can use if,elseif,else,/if:
{if $foo=="bar"}
....
{elseif $foo=="bar2"}
....
{elseif $foo=="bla"}
...
{else}
default
{/if}
----- Original Message -----
From: "Pablo Fischer" <exilion@yifan.net>
To: <smarty-general@lists.php.net>
Sent: Saturday, April 05, 2003 4:49 PM
Subject: [SMARTY] Smarty + Switch & Case?
> Hello!
>
> Im creating a little nuke (for my own projects) using Smarty, I just
> have a question:
>
> Exists a function similar to 'switch'? cause I need to evaluate more
> than 5 conditionals:
>
> * if text dinamic
> * if img dinamic
> * if html code
> * if php code
> * if rdf code
>
> Thanks all!
> --
> Pablo Fischer <exilion@yifan.net>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>