Yep, NP. Alternatively, you can replace thd LOCATE X,Y command with whatever you're testing for.