Conditions are powerful attributes that you can add to Triggers so that they only fire when certain conditions are met. In this article, we'll review what conditions are and how you can deploy them in your workflows to take action.
Conditions can be added to certain triggers, such as a New Data trigger, to define scenarios that must be met before the trigger will run. They cannot be added to triggers such as scheduling, which are run based on the timings you set, but they can be added to certain actions that lookup or search existing datasets.
To add a condition, simply drag the If condition onto the canvas, below the trigger you are working on.
Next, you'll define the specific conditions that need to be met. Any actions you drag below the condition will be run when the condition is met. Actions dragged below the Else box will be run when the conditions are not met.
Types of Conditions
Qrvey offers two different types of conditions:
- If Field - allows you to specify a particular field that should trigger the action.
- If Metric - allows you to specify a metric threshold that will trigger the action.
Once you have selected your conditions, you may drag as many Action blocks to your workflow as needed. Conditions and actions will be nested so you can easily follow along visually to what is taking place and when.
You'll notice in the example above, there are additional special conditions present, namely three different conditions for the Search Records action, which defines discreet conditions for No/One/Multiple records found.
Quizzes have two unique conditions all to themselves. They are If Score is and If Rank is. With every quiz response, a score is automatically calculated and that score is automatically compared to all of the other responses to determine its rank (first place, second place, and so on). You can use the Score condition to create special workflows for quizzes that receive a score of 90% or better, for example, or you can use the rank condition to send special messages to your Top 10 finishers.