Groovy web console

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

benscript

Published 7 months ago by mitchell with tags groovy
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def obj = [ ben : true ]
println (obj.hasProperty('ben') && ben) ? "true" : "false"
println (ben) ? "true" : "false"