Get the Index of an Array Var

Let’s say that I have an Array “A” with a child variable String of “B” at Index 0… there is a way to get the Index 0 by the String “B”?

More generally… there is a way to get the Index of a String (or number) knowing only the String (and the Array, obviously)?

It’s possible?

1 Like

Yes, and I think the only way will be to iterate through each array element, checking the value.

1 Like

But I dont know which Action or Condition use… some advice?

Here’s an example of how to do it:

The array is defined as:

And the events are as follows:

Hopefully you can follow what’s going on, but reply if you’d like it explained a bit :slight_smile:

1 Like

Wonderful! I get it!
Thank you lot, savior!