AnsweredAssumed Answered

Go To Script Step

Question asked by rkutcher on Feb 21, 2018
Latest reply on Feb 24, 2018 by philmodjunk

Many years ago when I did an introductory Fortran programing course we had a GoTo step that would allow us to jump around in the program to different  steps in the program.

 

Is there a script step that will make the script jump to a step further on in the script?  At the moment the only solution I can come up with is to add in an IF statement and write the section of the script that I would like to jump to again inside the IF statement.

 

For example if I have a 30 step script depending on a given criteria I might like to jump from step 10 to step 20 and then complete the script steps 20 to 30.  To accomplish this I include an IF step and inside the IF I write the steps 20 to 30 again.  It makes for rather long and confusing scripts if you have a number of conditions that might mean the script does different things.

Outcomes