Im trying to write code for a button that will display a message when pressed then a different message when pressed again and then another message when pressed again. Then if pressed again it will go back to the first message and so on.
I thought it might be something like this but the program wont know when to go onto the following message. If anyone can help that would be great.Code:if(BUTTON==DOWN){ /*code for first display*/ } if(BUTTON==DOWN){ /*code for second display*/ } if(BUTTON==DOWN){ /*code for third display*/ }