retrievind index number of a certain element into a list
Posted: 03 Mar 2020 10:39
Good morning everyone.
I have a list. Say [ABC, CAA, CXZ]
With the contains function I can see that the list, in one of its item, contains a certain string, say "X"
Now, I would like to extract the whole item or element which matched the search, say "CXZ.
So I guess I have to obtain the index (which, in my example, would be 2, being the third item) of the element and then use the function getElement.
How do I retrieve that?
Thank you.
I have a list. Say [ABC, CAA, CXZ]
With the contains function I can see that the list, in one of its item, contains a certain string, say "X"
Now, I would like to extract the whole item or element which matched the search, say "CXZ.
So I guess I have to obtain the index (which, in my example, would be 2, being the third item) of the element and then use the function getElement.
How do I retrieve that?
Thank you.