Groovy web console

subscribe to the feed Subscribe
to this
site

Вот так надо

Published 6 months ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def lastComment = []
if (lastComment.size() > 0) {
    lastComment = comments?.last()
}
print(lastComment)