Groovy web console

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

dinamic var

Published 5 months ago by m3mm0 with tags var dinamic
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
 def config = {tracks : [maininfo:"main_info",additionalinfo:"additional_info"]}

 def track = "mainInfo"

 config.tracks."${track?.toLowerCase()}"