1. Component introduction
Prerequisites: None
You can use this component to set one or more conditional branches, such as if, elif, and else.
2. Inputs
For more information about each input, see the help information in the component panel of the application flow editor.
3. Outputs
For more information about each output, see the help information in the component panel of the application flow editor.
4. Component usage example
4.1. Component configuration example
In the
Branch Conditionfield, set the condition.
4.2. Example execution result
None
5. Example of building a flow
Setup flow
Use the Loop by Count component to set the loop to execute 10 times.
Use the Conditional Branch component to set one or more conditions.
Use the Continue Loop component. If the first condition is met, the component skips the current iteration and starts the next one.
Use the Record Log component. If the second condition is met, the component prints the value of the current loop item.
Use the Break Loop component to exit the loop if neither of the preceding conditions is met.
NoteThe conditions set in the conditional branch are evaluated sequentially from top to bottom. As shown in the following figure, you can change the order of the conditions in the green box on the right.
Execution result
As shown in the following figure, after the flow is successfully executed, the evaluation result is printed in the log panel.