Using the == (equal equal) node to compare coordinates

Hey everyone,

Is it possible to compare coordinate points ie x and y. When I try using the node == I get a false output which you can see below. The image displayed below highlights the two coordinates that share exact x and y position. Any help is much appreciated.

Thank you,

Stephen

You could just use the Geometry.DistanceTo node and use <= node to find length of less than 0.001 (or some other small number). It’s never the great to compare xyz values literally even if they appear to be in the same place, you can get some odd results.

1 Like

I think you need Equals, not == for geometry.

1 Like

i tried equals, but no luck still says false

thank you so much Daniel it worked,

Cheers!

No worries! :wink: Don’t forget to mark as resolved.