Groovy web console

subscribe to the feed Subscribe
to this
site

vottak

Published 2 months ago by neya with tags allo
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def test = [a:"a",b:null]
switch(test) {
    case {test.a != null && test.b == null}:
        println("aaa")
    case {(test.a && test.b) == null}:
        println("bbb")
}