You need to code something like this DISPLAY 1 TOUCH OUT TM,TX,TY IF X>0 && X<500 && Y>0 && Y<500 && TM>0 THEN LOCATE 10,10:?"WORKED" CLS DISPLAY 0