Board Thread:Questions and Answers/@comment-24837408-20140610165343/@comment-5106053-20140610203701

Another way to do it is this:  FOR I=0TO 0STEP 0 IF BTRIGAND 16THEN I=1 VSYNC 1 NEXT This will be slightly better for performance because it removes the need for an ELSE constantly setting I to 0, also I would recommend the VSYNC so that the button press doesn't carry over.