Working with conditions
Learn how conditions function, how to set them up between two actions, and how to use built-in conditional operators effectively.
About this task
Set up conditions between two conditions (or between a trigger and a condition) in a workflow. If the conditions are met, the workflow proceeds to the next action. If the conditions fail, the workflow stops. When defining conditions, specify an input, a condition, and an expected value. The input that you use in a condition is usually the output of the preceding condition or trigger.
- Input - {{$a1.translated_text}}
- Condition - contains
- Expected - hola
Here, {{$a1.translated_text}} is the output of the preceding condition, contains is the operator, and hola is the expected value. If you set this condition, the workflow proceeds to the next action only if the output text of the previous action contains the word hola in it.
Learn how you can apply a condition to a practical scenario. Imagine you want to automatically send card details to a specific Slack channel whenever a new card with the name approval required is added to a specific list in Trello.