0

Hi can someone tell me how I would change this...

if($values['CountryName']="England");

to include an or statement, ie if = "England" or "Scotland" or "Wales";

Thanks

Ok so please just humour me, would it be... if($values['CountryName']=="England" || $values['CountryName']=="Wales" || $values['CountryName']=="Scotland" )

{enter code here

  • Also note that `=` is the assignment operator, and `==` for comparisons. – mario Jun 14 '15 at 13:49
  • if($values['CountryName']=="England" OR $values['CountryName']=="Scotland" OR $values['CountryName']=="Wales"); – Bolli Jun 14 '15 at 14:13

0 Answers0