Get last item of a list while doing personalization in AJO campaigns
Hi ,
I am trying to split a string and get the last item from the list. For this, i am not sure what helper function to use.
I have a string lets say sampleString with value abc-12345.
For splitting i am using the split function {%= split(sampleString,"-") %} and this is giving me the result List(abc, 12345) which is expected. Now from this list i want to fetch the last element .
On the documents it says head can be used to fetch the first element but can't find anything to fetch the last element of the list.
Thanks,
Arpan
