Hi,
The == node doesn’t find the items i am looking for, could somebody explane me why?
The List.Contains is just a check for “True”.
Hi,
The == node doesn’t find the items i am looking for, could somebody explane me why?
The List.Contains is just a check for “True”.
This just comes down to different ways of comparing objects. Points aren’t directly comparable objects. You could have two points that come from different sources with the same coordinates, but that doesn’t mean they’re the same object. List.Contains just checks to see if a list contains any object that “looks like” (for lack of a better term) the input item.
As @sovitek mentioned, strings are directly comparable objects. So you can just stringify the points and compare them that way. This also helps with rounding issues that are common in points and other geometries.
Instead of converting to strings I recommend the Geometry.AlmostEqualTo node. It’s more portable and can keep more than the 3 digits of precision you’ll get with strings.