Adding a Return Statement

Use the return statement to stop execution. When a return statement is encountered during execution, the logic extension stops processing and returns the output data in the current state. This can be used to exit the logic extension when a certain condition is met or as a temporary statement while debugging to see the state of the output data prior to a step.

To add a Return statement:

  1. On the design panel, hover over the location where you want to add the return statement and then click the + icon.
  2. Select Return from the Action menu.
  3. In the Return side panel, edit the label and enter the description for the return statement.
  4. Click Save.