There is continue; for breaking out of loops, and you can have multiple return statements from a function, so if you need to stop just return from your curent location (with a suitable return type - you could, if there are no set values, return true if the script was meant to go on and false otherwise).
Comments
There is continue; for breaking out of loops, and you can have multiple return statements from a function, so if you need to stop just return from your curent location (with a suitable return type - you could, if there are no set values, return true if the script was meant to go on and false otherwise).