Need help with Indexing a custom state list

Hi All,
I really need help to with a custom state list, the custom state list is a selection from a repeating group, I would need to capture the order in what it was selected or better said I need the index of the list.
Thanks everyone for your support :slightly_smiling_face: