| || |
How to make script skip to next iteration?
Currently my scripts aren't very robust..
- do step 1
- do step 2
- do step 3
If step 1 fails, the script continues to barrel through steps 2 and 3.. I'd like to add in some basic checks such as:
If result1 = FALSE, skip to next iteration.
What's the best method of approach? By "skip to next iteration", I mean forget this iteration, and jump back up to BEGIN_TRANSACTION() and start over again...
I'm thinking something along the lines of the CONTINUE statement in a FOR loop.... I thought of possibly embedding my entire script into a FOR loop, but that seems to be a long way around.
Re: How to make script skip to next iteration?
you could use a goto statement: