Ah I see it now , I needed the {} for the function as well as the actions in the IF statement