Groovy web console

subscribe to the feed Subscribe
to this
site

while

Published 2 months ago by tu vieja with tags kaksdkasdkas
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String[] array = ['asdas', 'asdas333', 'asdas1']


int i = 0
int length = array.length
boolean ok = true

while( i < length && ok ) {
  if('asdas333' == array[i]) {
    ok = false
     return "sdfdsfsdfds"            
    }
   i++
}

return "adasdas"