Forum Discussion
aaronpliu
7 years agoFrequent Contributor
Hi SK07,
Dont think of it to be complex. If you only wanna count the number of "[]", try
// your list aa=[[], [], [1,1],[2,2,2]]
def num = 0
for(item in aa){
if(item.size() < 1) num++
}
log.info "[Ids []: $num]"
Regards,
/Aaron
SK07
7 years agoContributor
Thank you! Aaron.