Groovy web console

subscribe to the feed Subscribe
to this
site

Boolean.valueOf()

Published 2 months ago by ckeleher
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def s0 = null
def s1 = "null"
def s2 = false
def s3 = "false"
def s4 = 0
def s5 = "0"

println(Boolean.valueOf(s0))
println(Boolean.valueOf(s1))
println(Boolean.valueOf(s2))
println(Boolean.valueOf(s3))
//println(Boolean.valueOf(s4))
println(Boolean.valueOf(s5))