Extract trigger send to one if statement