As can be seen from the attached image, I'm getting a red noodle immediately after using a Compare node. This isn't entirely surprising, as I'm obviously trying to connect a diamond with a circle at that spot. However, as can be seen, I'm using a Sample Index immediately prior to that, which I thought was the way to obtain the specific attribute value that I need to use in the Compare node. As such, I'm now very confused about what's actually going on here and what I need to do to fix it. So, any suggestions? I'm using v3.4.
Thanks in advance.

Sample Indexwith a field, you will always get a red line.Switchrequires a single value for a geometry. You can force this by feeding theSample Indexnode with a single value at the Index input. Read more here: https://blender.stackexchange.com/questions/274557 – quellenform Feb 09 '23 at 21:13