How do I get indexes that meet the conditions from array?

How do I get indexes that meet the conditions from array?

This is my blueprint

Create an Int array, put a Branch node after the condition, add ArrayIndex to the array if the Branch executes True.

Thanks. It’s working!!!