Problem with virtual pins and if command (ESP 8266)

You can’t use 9 relays successfully with a NodeMCU, there aren’t enough suitable pins. You should read this:

You should use an ESP32 instead, or a port expander on the NodeMCU.

Your void loop isn’t suitable for use with Blynk. You should read this…

http://help.blynk.cc/getting-started-library-auth-token-code-examples/blynk-basics/keep-your-void-loop-clean

Add virtualWrite commands to your void setup to set the status that you want.

Read this…

Pete.