If Element
Element for conditional execution
If Element
The <if>
element enables conditional execution based on a test condition:
Prop | Type | Default |
---|---|---|
id? | string | - |
condition | Expression | - |
Examples
Basic Condition
Multiple Conditions
Complex Conditions
Usage Notes
- Use for branching logic in workflows
- Can be combined with elseif and else elements
- Condition must evaluate to a boolean
- Can contain any executable content