Is there a way to stop this code for continously looping?

Im supposed to make a notification whereby it shows up whenever i walk for 10 meters but whenever it reaches above 10m, the notification keeps looping until i fully stop walking. Is there a way to notify the user only one time?

:pray:

Lito

@>-->---

1 Like

use a global variable to remember if the dialog has pop up or not.