Unfortunately you can’t chain like that it makes sense for people, but computers need different notation:
x-diameter/2 < mouseX && mouseX < x+diameter/2
Or
abs(x - mouseX) < diameter/2
Unfortunately you can’t chain like that it makes sense for people, but computers need different notation:
x-diameter/2 < mouseX && mouseX < x+diameter/2
Or
abs(x - mouseX) < diameter/2