Jump to content

[solved] How to use an OR statement in $category->id == x


Recommended Posts

Hi guys,

 

This should be quite simple, but I am stumped and can't understand why this isn't working.

I have a link that appears on all category pages, but I need to list a few where it doesn't appear.

I have tried;

{if $category->id != 1433 OR $category->id != 6100}
and
{if $category->id != 1433 | $category->id != 6100}
and
{if $category->id != 1433 || $category->id != 6100}

None of those actually work, it seems the if statement is ignored as the link appears on both those category pages.

But

{if $category->id != 1433}

Does work.

 

So how can I list the category IDs in the if statement to include all categories I need to?

 

Thanks

Edited by neller (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...