Groovy web console

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

testing

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def a = null

a ? println('true') : println('false')

a = ''

a ? println('true') : println('false')

a = '*'

a ? println('true') : println('false')

a = 'something'

a ? println('true') : println('false')