How to get index number from a loop?

Hi,
I am trying to get index number from a list within a loop. However, it returns empty list. If i removed the loop and used the command list.allindicesof once at a time, the result appeared normal. Can anyone please tell what went wrong?

List.AllIndiciesOf accepts two parameters, a list, and an item to search for, - you are passing a boolean for both parameters.

Your first parameter - is JN == List.GetItemAtIndex(JI,i) which will return a boolean (is the item equal to JN) … not a list of search in.

Hi, Michael
Thanks for your reply. However, after I changed ‘i’ into a constant number, it returned a correct result.
So I don’t know why it doesn’t work out when using loop.