A menu with some buttons

LarryD:
As I suggested, if you use a variable menuItem, each time you push a switch the new value of the counter is used as a trigger to display a new screen message.

My main question is that in the void screen1 subroutine, how do I jump out from that subroutine since I am using the while(true) loop ?

Thanks !