Groovy web console

subscribe to the feed Subscribe
to this
site

string-compare

Published 2 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String s1 = '01: aaa'
String s2 = '02: cccc'
String s3 = '03: bb'

String startFrom = '02: cccc'
println(s1 >= startFrom)
println(s2 >= startFrom)
println(s3 >= startFrom)