Skip to main content

Else If - multiple conditions

Sophie avatar
Written by Sophie
Updated this week

Definition and Usage

Check one or more additional conditions if earlier conditions were false. This command allows you to create branching logic by evaluating multiple conditions when previous conditions in an If statement were not met. You can specify whether all conditions must be satisfied (Match all) or any single condition needs to be met (Match any) for the branch to execute.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Match type

Determines whether all conditions must be met or any single condition satisfied

Match all, Match any

Yes

Match all: All conditions must be true; Match any: At least one condition must be true

Conditions

The conditions to be evaluated

-

Yes

Multiple conditions can be added using the "Add condition" button

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

  • Variables can be inserted into condition values by using the {x} syntax or by clicking the variable icon.

  • When using variables in conditions, ensure that the variable type is compatible with the comparison operation.

  • Variables used in conditions should be previously defined in the workflow.

  • You can compare variables against static values or other variables.


Notes

  • This command must be placed after an "If" statement or another "Else if" statement in the workflow.

  • When using "Match all", the execution will only proceed if every condition evaluates to true.

  • When using "Match any", the execution will proceed if at least one condition evaluates to true.

  • If none of the conditions are met, the workflow will continue to the next Else/Else if branch or to the commands following the entire If-Else structure.

  • You can add multiple conditions by clicking the "Add condition" button.

Did this answer your question?