Using EL to get the LAST element in a list?

Looking at the docs:

There is an easy way to get the FIRST element in a list: ${list(0)}
There is an easy way to get a RANDOM element in the list: ${list.random()}
I can get the size of the list: ${list.size()}

But is there a way (that is not captured in the docs) that I can get the LAST element of the list, e.g. ${list(list.size-1)} (which doesn’t work, naturally)

Not possible. We don’t intend to implement every possible use case is Gatling EL, way too many possibilities. You have to resort to Scala functions then.

Just checking. :slight_smile: