Select index within list of mailmessages

Hi all,

After sorting a list of mailmessages by subject in ascending order, I am attempting to select and display a subject from an email within the sorted mailmessages list by a desired index value.

After researching I can not find an example for this. See attached:


IndexOf() is to get the index of a string in another string.

Eg: (“Abcd”).indexof(“c”) =2

So, for reading 3rd mail message use

Index always start with 0 you can display the mailmessage using index like outMailmessages(list of mail messages) outMailmessages (0).subject.tostring…