you are checking the value of strings and NOT integers. stop putting the numbers in quotes, you dont need to do that.
Also, this snippet you posted is different, you have three || statements not 2 || and an && statemnt. is that what you wanted to do all along?
Have you tried echoing out the variables in your script, before after and during your loop??