Groovy Ternary Operator Get link Facebook X Pinterest Email Other Apps - March 18, 2018 //Groovy also supports the ternary operator:def y = 10def x = (y > 1) ? "worked" : "failed"assert x == "worked" Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment