The following code examples all produce the same results where x evaluates to true according to Groovy Truth // These three code snippets mean the same thing. // If x is true according to groovy truth return x else return y x ?: y x ? x : y // Standard ternary operator. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.