def country_list = [] country_list =['sg', 'ph', 'hk'] for (String item : country_list) { println item if (item.toUpperCase() == "PH") isPH = true } println isPH