IF ELSE CONDITION WITH LCD

I just made a home automation project, but now i want to add a lcd and display the circuit that are on.

eg- If I pressed the fan button, then the display will come as (FAN SWITCH ON).

I made it via if-else if atatement, but i kept all that in void loop(), after which I face the problem. Can anyone help me

I made it via if-else if atatement, but i kept all that in void loop(), after which I face the problem. Can anyone help me

Please re-read what you wrote, and then ask yourself "how the Hell is anyone going to be able to help me with so little detail?"