You need to use || and && for the code to run correctly, for example think of it as "If the fruit is an apple OR an orange, do this. If the fruit is not an apple AND not and orange, do that."
If there is an error in the code, you will receive a PHP error when you load the profile page, for example:
|Parse error: syntax error, unexpected... |
If you receive an error like this, double check your code, specifically the "eq", "!=", "||" and "&&".