Index of an element in a list

1
Is it possible to get index of an element in a list? I have list, sorted by name, say, A, B, C. I wish to compare a string with the values in this list, and if it’s found, use the index. So, if “B” is found, use index 2 to do something.
asked
2 answers
0

This is not possible,

You can either loop through the list and have an index counter.

Or you make a custom javaaction which returns the nth element for a list

answered
0

It's not possible to find the index in the list, but you can retrieve the object if you want that. You can use the list operation find to retrieve the object which is valid against your expression, if that is what you want. See this for more information.

answered