Keypad, LCD and Servo Code

Hi, I am fairly new to Arduino coding and am wanting to make a small vending machine as a way to practice. I am trying to make it so that whenever a key is not pressed, the LCD will display a message. I have tried bool without success, can you help me? Thanks!

Vending_Code.ino (1.32 KB)

Please read https://forum.arduino.cc/index.php?topic=148850, specifically point #7 about posting code using code tags. Your code is small enough.

You’re currently missing out on advise from users that use cell phones and can’t open ino attachments.

if(keypressed = NO_KEY);

= ?

I don't think so

Hi, Have you got your code to display anything on the LCD?

Tom... :)