I need to apply IF statement in Widget LED

I recommend you:

1- keep your void loop clean, just

void loop()
{
  Blynk.run();
  timer.run();
}

Nothing else.

2- avoid using delay with blynk and use blynk timer instead, check this very useful topic

3- keep your sketch as simple as possible.