Quote:
Originally Posted by someguy03
I want to have category 264, 271, 275, etc. How can I format the statement to have multiple category numbers?
|
Really easy, you will laugh:
Code:
{if $cat eq "264" or $cat eq "271" or $cat eq "275"}
Code
{else}
Code
{/if}
Quote:
Originally Posted by someguy03
Also, how can I have a negative if statement? So I can tell something to NOT display if it is a certain category.
|
Again easy (thankfully):
Code:
{if $cat ne "264"}
Code
{/if}
Smarty is so simple and makes so much sense.