Groovy web console

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

?: operator

Published 3 weeks ago by Adam
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def withReg = false
def coalescedWithReg = withReg ?: true

println(coalescedWithReg)