Activating LED on signal input=null

That code does not work, does it? Don't you think you should fix it before you add another function?