Exit
Use this action to terminate an Automation script without delay:
Next to Exit script with, choose Success or Failure in the drop-down list:
Success: the execution of the script will be considered "successful" after it is terminated due to this action.
Failure: the execution of the script will be considered "failed" after it is terminated due to this action. In this case, a "Fail" message will be generated in the Alarm Console.
Click the underlined field after the colon and enter the message that must be displayed in the Automation logging, as well as in the Alarm Console in case of failure.
Note
It is also possible to add this action within a C# block in a script. For more information, see ExitFail and ExitSuccess.