you can do anything
it depends on your code's structure, we cant tell you how to do this because there are unlimited ways to create an application, we can't just guess how your code looks like
pseudo code is enough to show the structure tho
but in general, it would be like this (in gdk):
reset all the variables if you have any
-in some cases you don't want to reset some variables, like a variable that counts how many times the loop repeated, you probably dont want to reset it-
reset all (objects/sprites/whatever)'s location/rotation/scale/whatever, same as above, you might not want to reset some specific objects
use "continue" keyword, it just go to the beginning of a loop (for/do/while)