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\
Is it possible to get just the 2nd or 3rd item in the list?
- encryptedbytes
- Posts: 9
- Joined: 25 Oct 2012, 23:23
Is it possible to get just the 2nd or 3rd item in the list?
~ EncryptedBytes
Re: Is it possible to get just the 2nd or 3rd item in the li
{genres} is List type object. So you can do {genres[0]}, {genres[1]}, ... and all the other Groovy sugar, e.g. {genres.join('/')}