def cond = true | |
if (<selection>qqqqq</selection>(cond)) { | |
println "a" | |
} else { | |
println ("b") | |
} | |
private def qqqqq(boolean cond) { | |
if (cond) return true; | |
else return false; | |
} | |
----- | |
def cond = true | |
boolean result | |
if (cond) result = true; | |
else result = false | |
if (result) { | |
println "a" | |
} else { | |
println ("b") | |
} | |
private def qqqqq(boolean cond) { | |
if (cond) return true; | |
else return false; | |
} |