0

Hi All

I am sure this is easy, but I can't make it work

I have two variable $sectionID and $categoryID. There are a whole pile of conditions that these could have but I want to pick out two: when $sectionID==4 and $catergory!=21 and $category is !=27

How do I write them into an if statement - I have tried variation of

if (($sectionID==4 && $categoryID!=21)||($sectionID==4 && $categoryID!=27)){
...

and

if (($sectionID==4) && ($categoryID!=21 || $categoryyID!=27) ){
...

but they don't seem to work

I guess I am missing something - can anyone please help

Thanks in advance
E

Edited by maxelcat: n/a

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by maxelcat
0

Thanks for the quick reply - very helpful- and kinda obvious really, when you look at it!

:-)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.