![]() |
If Statement Help Needed
I am using the following if statement but would like to add other categories to it so that it would show in catagory 6 and 12. What is the proper way to do this?
Code:
{if $product.categoryid eq "6"}{/if} Thanks |
Re: If Statement Help Needed
Quote:
Code:
{if $product.categoryid eq "6" or $product.categoryid eq "12"} CAN YOU USE this instead? Code:
{if $cat eq "6" or $cat eq "12"} |
Re: If Statement Help Needed
Thanks Jeremy, that worked. It ended up looking like this,
Code:
{if $cat eq "7" or $cat eq "8" or $cat eq "9" or $cat eq "12"} hopefully this is the most efficient method. |
All times are GMT -8. The time now is 06:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.