About Index of


I want to find index about the list.(flatten list). But the result is -1 not 3 or 4.
How can I get 3 or 4?

Are they the same data type? If one a string and the other a number, or even different types of number (int vs double) this can cause an issue.

E.g. these will show the same in your drop down preview, but because they’re different data types they won’t match when you use the IndexOf node.

image

Set the Element input to be at list level 1 (@L1)

1 Like

image
All are double.
image
And It also didn’t work

The @L1 is working for me, so it’s likely there is a floating point issue. Use a Math.Round node on each of the values to round the value off to the desired degree of precision and see if that solves it.