Thanks for the fast reply!
With if (a = b) I always get the first (if) value
With if (a == b) I always get the second (else) value,
regardless of the y-position’s being the same or not.
The y-position of the pin-layer gets it’s value from a script. And the pin-layer is a guide layer (does that make a difference?)
I tried it too with:
s = (a-b);
if (s = 0) etc.
but this gives me the same result