Very simple question… I’m having an issue that an if statement isn’t working? All I want is the statement to be that if when $quantity is not equal to 20, or 40, or 80, or 160 to display here.
if($quantity != '20' || $quantity !='40' || $quantity != '80' || $quantity != '160')
{
echo "here";
}
Any suggestions would be appreciated. 🙂
Try this, it’s cleaner (IMO) :
Else just replace
||with&&.