Groovy web console

subscribe to the feed Subscribe
to this
site

nahum

Published 1 month ago by nahum with tags nahum
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String x = "5";
println x?.trim() ? 'value' : 'no value'
x = null
println x?.trim() ? 'value' : 'no value'
x = ''
println x?.trim() ? 'value' : 'no value'