how to send Alert and avoid doing it second time (loop)?

Any one