Why the list.index of out put is -1?

I get the Angle in top and I want get 180 index in the list , but return is -1!!!

Does it work in if you use 180.0?

1 Like

You can also use the Object.Type node to see what value Type it is and make sure the type you are using to search matches.

It may be that you are comparing doubles to numbers. Convert your number to a double or your doubles to an integer and use the List.AllIndiciesOf node instead.

It’s weird, after testing, as long as the lacing was set to Auto on the List.IndexOf node, it works, but it only returns one index. When the lacing is set to longest, it goes back to listing -1.

1 Like

thanks alot

1 Like