Groovy web console

subscribe to the feed Subscribe
to this
site
answer (via #groovywebconsole)
tweet this snippet Tweet
this
script

answer

Published 6 months ago by dsharew with tags list
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
 def country_list = []  country_list =['sg', 'ph', 'hk'] 
 for (String item : country_list) { 
     println item 
     if (item.toUpperCase() == "PH") 
         isPH = true 
 } 
 println isPH