Groovy web console

subscribe to the feed Subscribe
to this
site
Boolean result of empty array (via #groovywebconsole)
tweet this snippet Tweet
this
script

Boolean result of empty array

Published 2 months ago by Jeff
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def var = []
if (var) {
  println "true"
} else {
  println "false"
}