How would you program this?

I was looking through some old vex innovation submissions and I found this I am not the best programmer so I was wondering if anyone could help me make something that does the same thing as I am currently having the same problem or help me think of another way of solving this problem

The usual way of doing this would be to check the bIfiRobotDisabled flag when running the LCD code. Have a look at this thread and perhaps search the forum for other examples of using the LCD.