HELP with: [in list() find first/last occurence of item()]

Hi Thunkers,

I am experiencing an anomaly. Unless I am losing my mind, I am certain I have this working in other parts of my app but I cant get it to work anymore:

Returns 1.

Returns 0

EDIT: I have looked back into most of my previous applications using this block and it looks like I have indeed searched for the entire string in a list to return an index.
Is there any way to search as a sub-string within the list items to return the index? Thanks in advance.

That looks like the expected behavior for those blocks.

To search for a sub-string within a list item, you’d need to loop through the list items and check each one using this Text block:

Screen Shot 2020-06-21 at 10.00.36 PM

2 Likes

Thank you @tatiang .

I have already used this method using sub-string but needed confirmation that the find in list block was acting correctly. Thanks again for your insight and timely response to my query.