def myList = [1,2,3,4,5,6,7,8,9,10] def emptyList = [] def check(List list) { def counter = 0 if (list.size() == 0) { return "Die übergebene Liste ist leer!" } for(i in 0..