[Solved] How to find an item index in a list?

Is there a way to find the index of an item in a list, given that you are not using any data sources or API to import data, just a regular list?

Yes, use the First occurrence of block:

2 Likes

Thanks @tatiang. Just making sure.
Say I have a list
Apple
Orange
Mango
Banana

I want to find the index of mango, will the ‘first occurrence of’ block return 3?

1 Like

Yep

@jared and @tatiang, thanks a lot for the response, worked well.

1 Like