Noob wiring/software help for esp8266

i can get it to stay on and then turn off when i flick switch but i need the opposite of that.

Can you show how the led light was wired and how the switch was wired when you got this result?