neller Posted January 9, 2014 Share Posted January 9, 2014 (edited) 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 January 10, 2014 by neller (see edit history) Link to comment Share on other sites More sharing options...
neller Posted January 10, 2014 Author Share Posted January 10, 2014 So I should have used AND instead of OR. {if $category->id != 1433 && $category->id != 6100} Link to comment Share on other sites More sharing options...
Recommended Posts