Help with switch between display with push botton on lcd

Hi guys i,am new to coding and arduino and loving it so far, but i am stuck at the moment with this little problem. I have one LCD connected to my arduino and want to switch between two displays on it via a push button. if someone can possibly push me in the right direction it will be much appreciated.

Take a look at the state change detection example in the ide File>examples>02digital>StateChangeDetection.

It shows how to increment a counter with a push button. You can use the count to determine what is displayed on the lcd.

if(count ==1)
{
//display this
}

if (count==2)
{
//display that
}

Thank you will have a look at it tonight...