Learn how to use condition operators in your workflows.
Conditions in workflows
Condition operator is a fundamental component that allows you to control the flow of your workflows based on specific conditions or criteria. It acts as a decision-making point within your workflow, determining the path the workflow will follow based on the evaluation of a condition.
Condition operator allows you to implement complex decision-making logic within your workflows. It enables you to create conditional branches, perform data filtering, and execute different sets of actions based on the evaluated conditions.
Condition operator evaluates a condition or expression and branches the workflow into two different paths: one for the
true outcome and another for the
false outcome. The condition can be defined using various operators and comparisons to assess the values or variables involved.
When the condition evaluates to true, the workflow proceeds along the
true path, executing the subsequent nodes or actions defined in that branch. On the other hand, if the condition evaluates to
false, the workflow follows the
false path and executes the nodes or actions associated with that branch.
With a condition operator, you can build workflows that dynamically respond to changing conditions, automate decision-based processes, and streamline your data flow and operations. Condition operators provide the flexibility and control necessary to create smart workflows that adapt to various scenarios and requirements.
Using data to build conditions
Data from inputs
If your workflow is initiated with a manual trigger and if your trigger has inputs, you can access the values of inputs at workflow execution with
You can type
input.amount to get the value entered for
amount input and compare it with your value.
Data from events
If your workflow is triggered with an event (integration or webhook), you can access the trigger
event.body.event.body.order.item.type returns the
type of the ordered item in the event payload.
Data from actions in your workflows
You can use the responses of actions in your workflows. To access the data of an action result, start typing
nodes and then the alias of your action.
nodes.action0.response returns the
All events: When selected, the workflow will match every data that's evaluated against it and proceed to executing
true branch. No specific condition is specified when this option is selected.
One or more conditions below: When selected, if any one of the conditions are satisfied, it's sufficient to proceed to executing the
All conditions below: When selected, if all of the conditions are satisfied, it's sufficient to proceed to executing
true branch. If any of them fails,
false branch is executed.
false. This feature allows for more complex condition defining in your workflows. If the function evaluates to
true, the workflow proceeds to execute the
true branch. If it evaluates to
false, the workflow proceeds to executed the
|Equals||Compares the values of String, Boolean, and Number variables. Returns |
|Does not equal||Compares the values of String, Boolean, and Number variables. Returns |
|Contains||Checks if a String variable contains the expected substring. Returns |
|Does not contain||Checks if a String variable does not contain the expected substring. Returns |
|Starts with||Determines if a String variable starts with the expected value. Returns |
|Does not start with||Determines if a String variable does not start with the expected value. Returns |
|Ends with||Checks if a String variable ends with the expected value. Returns |
|Does not end with||Checks if a String variable does not end with the expected value. Returns |
|Is empty||Checks if a String or Array variable is empty. Returns |
|Is not empty||Checks if a String or Array variable is not empty. Returns |
|Is one of||Checks if a variable is one of the elements in the specified array. Returns |
|Is not one of||Checks if a variable is not one of the elements in the specified array. Returns |
|Greater than||Compares the values of Number variables. Returns |
|Less than||Compares the values of Number variables. Returns |