Groovy web console

subscribe to the feed Subscribe
to this
site

tenary operator example

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def list = true
list ? print("true ") : print("false ")
list = false
list ? print("true ") : print("false ")