Checking for the z position?

I see two && sets, so you have three conditions, do you meet all three? Did you debug qobj.position.z right before the if statement to see what that value is?

And use code tags when posting code Using code tags properly Which @dgoyette beat me to. lol