*URGENT* proximity sensor code not working

When I do that, another error comes up.

We have NO idea what "that" is you did.

You KNOW how to use && in an if statement. Why do you not use && between ALL the clauses?