Light action if else problem

yes tom you are right and thanks for the improvement.