WHILE 1 variable=BUTTON(number 0-3) IF variable=#button THEN... WEND Check help for more help