Abort Run
What does Abort Run do?
The Abort Run directive will terminate the running of the Prog command.
How do I use the Abort Run directive?
By default, if you add this directive into a step, it will automatically terminate the Prog command when it comes to that step.
However, you can add conditions to conditionally execute the Abort Run directive. Combined with this, you can create some flow control over the execution of your Prog command.
Example of Abort Run
Here is a simple example of how Abort Run is used with user input conditions:
Let’s walk through this example.
First, you see that a user input directive is used. It asks the user whether to proceed by responding with a Y
or N
input.
In the next step, we use a Abort Run directive and add a condition to execute this step if the answer is N
from the user input step.
This is just one example. You can also combine this with conditions which references values found in output variables, making the use of Abort Run with conditions a powerful combination.