code for stopping script during run without abort SOLVED

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

code for stopping script during run without abort SOLVED

Post by Esabik » Mon Apr 24, 2017 8:22 pm

Hi looking to see if I can get some help with stopping my script after it reaches a certain point. Can someone please point me in the right direction? Here is an example of my code.

Scripts starts
Message box to continue or abort
if choose Y to continue, goes to label "continue"(runs main code)
else N goes to label "finalend" at end of script

So the script runs all the way through, but I want to stop my script before the running script reaches that label "finalend". Is there something I can use to stop the script after it completes the part I want it to finish? :roll: :roll:

Thanks
Last edited by Esabik on Thu Oct 12, 2017 1:23 pm, edited 1 time in total.
Just when you thought it was safe to go in the water........:evil:

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: code for stopping script during run without abort

Post by JRL » Mon Apr 24, 2017 9:20 pm

You can use the Exit> function on any line. When that line is processed the script stops.

User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

Re: code for stopping script during run without abort

Post by Esabik » Thu Apr 27, 2017 8:14 pm

that worked perfect. Thanks!!!! :lol: :D
Just when you thought it was safe to go in the water........:evil:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts