Skip to main content

If - multiple conditions

Sophie avatar
Written by Sophie
Updated this week

Definition and Usage

This command allows you to check one or more conditions and execute subsequent actions if those conditions are true. You can configure whether all conditions must be met (Match all) or if any single condition being satisfied (Match any) is sufficient to proceed with the execution of the following actions.


Parameter Values

Input parameters

Parameter Name

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" requires all conditions to be true; "Match any" requires at least one condition to be true

Conditions

Set of conditions to evaluate

N/A

Yes

Add as many conditions as needed using the "Add condition" button

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

  • Variables can be used within conditions by inserting them using the variable icon or typing {x} where x is the variable name.

  • When creating conditions, you can compare variables against static values or other variables.

  • Ensure that the variable types are compatible with the comparison operation you're performing.

  • Common comparison operators include: Equals to (=), Not equals to (β‰ ), Greater than (>), Less than (<), Contains, etc.


Notes

  • The "If - multiple conditions" command is the starting point of a conditional block in your workflow.

  • Actions placed after this command (and before any matching "End if" command) will only execute if the specified conditions are met.

  • For complex logic, you can nest multiple If conditions within each other.

  • Consider using "Match any" when you want to proceed if at least one of several possible conditions is true.

  • Consider using "Match all" when you need to ensure that multiple criteria are simultaneously satisfied.

  • Remember to add an "End if" command to close the conditional block in your workflow.

Did this answer your question?