soooooo,

If Pulselen < 50 Then GoTo Blink ' no signal -> blink led
If Pulselen > 50 Then GoTo Solid ' signal -> Solid led

that's all !!!