This is my code in smarty:
{if $cat!="1_5"} do something {/if}
If I add additional condition with or:
{if $cat!="1_5" or $cat!="2_30"} do something {/if}
Then it doesn’t work in proper way. Why? Is this possible to use in one brackets two or more inequality conditions?
Alright, so we have the categories 1_5 and 2_30
let’s see what happens in your if-condition when
$cat="2_30"So, you get the idea 🙂 You have to use
ANDinstead ofOR: