That is an expected result and not a bug. Check the linked topics.
I would appreciate some
I’ve used grasshopper for years, but this is the first time I have been stumped so hard, as I’d have to back-track a huge script to get things to work the way they should. Somewhere along the way in my script the Item Index managed to break and no matter what sort of information I feed into it, it will give a -1 value.
Before posting: Item Index always returns -1 - I’ve looked at the forum and found different answers, but they involve not us…
[Item Index] only ‘finds’ identical values if they reside at the exact same location in memory. In this case, the text in the list and the text you’re searching for are indeed the same text, but they are stored in different memory locations.
You’ll want to use the Set components [Member Index] instead, which is clever enough to compare different instances for equality, but note that it only understands simple data types such as booleans, numbers, points, text, colours, etc. it doesn’t know how …
Member Index is more appropriate for finding Noot.
“the difference between [Member Index] and [Item Index] is basically that Member Index compares values, whereas Item Index compares memory addresses.”