Use the keyword goto to move to a certain point in the script. Here is an example:
mylabel: if(x>0) { x -= 1; goto mylabel; }
You can give the labels a name, but each label must have a unique name.