Loop function

My bad. Its not working the way i want :)). the moment when i start it just print all 20 messages and ignore the delay.

296964-loop2.png