Loop controls - early termination

Is there a command for ending the current repetition of a ?repeat for each item in list? loop? I am trying to create scripts that can run while I am not present, so I?m trying to create recovery clauses throughout the script so that if something unexpected comes up, it will reset the SUT and start the script right where it had the failure. Below in an example of what I would like to do. Please see the items in RED for where I need a command.


Repeat for each MyItem in List1
     Do some action
     Repeat for each item in List2
          Do action1
          If action1 fails
              Do some recovery action
              Return to (Repeat for each item in List2)
         End If
         Do action2
          If action2 fails
              Do some recovery action
              Return to (Repeat for each item in List2)
         End If
         Do action3
          If action3 fails
              Do some recovery action
              Return to (Repeat for each item in List2)
         End If
     End Repeat
End Repeat

You’re looking for this:

next repeat

You can exit a repeat loop with the command:

exit repeat