If Else
Description
This activity uses conditional or branching statements to execute different statements/branches based on whether a given expression is true or false. It includes a condition, a True branch, and a False branch. The Condition field must contain a Boolean expression that determines which branch to execute: True or False.
Common settings
Use Process Data to bind supported inputs to workflow values or upstream outputs. See Common Activity Features for shared execution, error-handling, and output-persistence settings. Availability depends on the activity.
Design-Time Configuration
Display Text
Specify the activity name that shows in your process.
Condition
Specify the condition expression. If the expression is true, the True branch executes; otherwise, the False branch executes. Click on the vertical ellipse to choose the following options.
| Options | Description |
|---|---|
| Default | When you select this option, specify the condition directly. |
| JavaScript | Specify the condition using JavaScript expression. |
| Liquid | Specify the condition using a Liquid expression. |
Execution settings
Configure Wait All Incoming when execution paths converge, and On Error for failure handling. Select Inherit where available to use the workflow-level error policy.
Example: Route a Boolean value
Insert a Boolean approval flag from Process Data into Condition, selecting the appropriate expression syntax. Connect True to the approved path and False to the alternative path. Supply a Boolean result rather than the literal text of an unevaluated expression. Use Switch Cases for more than two alternatives.