andreone
The issue is you're checking if a x position is exactly somewhere. With floating point numbers two separate values are seldom equal. It's better to check for a range of values like:
pick family where family.x > position+49
pick family where family.x < position+50