L.C. Display Message

How i can display multiple message on de lcd screen (16x2).

For example: i want that a signal in a digita input when be 5v displayed a message and when be 0v displayed no message.

I tried with this code but doesnt work…

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int buttonPin6 = 6;
int buttonState6 = 0;
const int buttonPin7 = 7;
int buttonState7 = 0;
const int buttonPin8 = 8;
int buttonState8 = 0;

void setup() {
pinMode(buttonPin6, INPUT);
pinMode(buttonPin7, INPUT);
pinMode(buttonPin8, INPUT);
lcd.print(“Welcome”);
delay(3000);
lcd.clear();
}

void loop()
{
buttonState6 = digitalRead(buttonPin6);
buttonState7 = digitalRead(buttonPin7);
buttonState8 = digitalRead(buttonPin8);
if (buttonState6 == HIGH) {
lcd.print(“Message 1”);
}
if (buttonState7 == HIGH) {
lcd.print(“Message 2”);
}
if (buttonState8 == HIGH) {
lcd.print(“Message 3”);
}
else {
lcd.print(“Waiting…”);
}
delay(1000);
}

I hope you can help me.

Right, first things first.

Go and read the instructions, then go back and modify your post to mark up the code as such so we can examine it conveniently and accurately.

I tried with this code but doesnt work...

What happens?

Don