Only turn on lights if its on or has a different brightness

I am making a blueprint for my lights and want to make an condition to only change the lights if its off or has a different brightness. How can I do that and make it generic in a blueprint?