Groovy web console

subscribe to the feed Subscribe
to this
site
fiona02 (via #groovywebconsole)
tweet this snippet Tweet
this
script

fiona02

Published 11 months ago by Dad with tags learning
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
int userSelects = 1

Boolean userSelection = ( userSelects == 2 )
String game = userSelection ? "Game one" : "Game two"

println game