How can I create an if then statement in the notification email