Skip to main content

Exit subflow

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

This command exits the current subflow and returns control to the calling point in the main flow to continue execution. It serves as a termination point for a subflow, allowing the automation to resume from where the subflow was initially called.


Parameter Values

Input parameters

This action does not require any input parameters.


Variables produced

This action doesn't produce any variables.


Notes

  • This command should only be used within a subflow. Using it outside of a subflow context may cause unexpected behavior or errors.

  • When executed, all local variables defined within the subflow will go out of scope and will not be available in the main flow.

  • If you need to return data from a subflow to the main flow, consider using global variables or output parameters defined in the subflow.

  • Multiple Exit subflow commands can be placed at different points within a subflow to provide conditional exit paths based on different logic branches.

  • The Exit subflow command is particularly useful in scenarios where you need to terminate a subflow prematurely based on certain conditions.

Did this answer your question?