I would say they easist way would be to monitor the buttons when your in the if routines and record the button states. Then once you return to the main loop process what ever value is stored in the variable. This will only work for sequencing one button though.
Bookmarks