Break loop

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisites: None

You can use this component to exit a loop immediately.

2. Inputs

Note

For information about each input, see the help text in the component panel of the application flow editor.

3. Outputs

Note

For information about each output, see the help text in the component panel of the application flow editor.

4. Component example

4.1. Configuration example

None

4.2. Execution result

None

5. Example flow

Create the flow

  1. Use the Loop for a specified number of times component to create a loop that runs 10 times.

  2. Inside the loop, add a Conditional branch component. Set the condition to check if the value of the current item is 5.

  3. You can use the break component to terminate the current loop.

  4. Use the Record Log component to print the value of the current loop item.

image

Execution result

As shown in the following figure, the log panel displays the condition result after the flow is successfully executed.