Page 1 of 1

Is it possible to get just the 2nd or 3rd item in the list?

Posted: 11 Nov 2012, 22:11
by encryptedbytes
I am wondering if it is possible to get just the second item in a list, such as the second genre? I am interested to sort movie files using a structure like this:

\genre1\genre2\

Re: Is it possible to get just the 2nd or 3rd item in the li

Posted: 12 Nov 2012, 04:44
by rednoah
{genres} is List type object. So you can do {genres[0]}, {genres[1]}, ... and all the other Groovy sugar, e.g. {genres.join('/')}