Can you send some working example on a bot with start stop button in form with loop. Loop started when press start and stop when press stop.

i cant find any example bots so therefor i ask for a example using this functions.