Groovy web console

subscribe to the feed Subscribe
to this
site

Example step

Published 2 months ago by Ulisses Telemaco with tags step iteration
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
class A {
   def field1 = '11111'
   def field2 = '22222'
   def field3 = '33333'
   def field4 = '44444'
}

def a = new A()

1.step 4, 1, {
println a."field${it}"
}