Keragon's "Continue If" logic serves as a crucial component for streamlining workflows by adding conditional statements that determine whether the workflow proceeds. This feature is invaluable for ensuring that actions within your workflow are executed only when certain conditions are met, making your automations more efficient and targeted.
Steps to Implement "Continue If" Logic in Your Workflow
- Add the Continue if action: In your Keragon canvas, click the ‘+’ icon to introduce a new step. Select "logic" from the dropdown menu, and then choose the "Continue If" option.
- Define Conditions: Once the "Continue If" logic is added, click on it to set the conditions under which the workflow should continue. You will be presented with an interface to specify these conditions based on the outputs from previous steps or external data sources.
- Configure Conditions: Use the provided fields to create your conditional logic. You can utilize a variety of operators such as equals, greater than, or contains to specify the criteria that must be met for the workflow to proceed.
- Test the step: Click "Test step" to check whether your condition holds with the data from the previous steps. See the section below for how to read the result.
Testing the Continue If step
Testing a Continue If step only evaluates its condition. The steps after it do not run as part of the test, so it is safe to test even when later steps create or update records in other systems.
- Run the steps above the Continue If step first, so their data is available for the condition to check
- Open the Continue If step and click "Test step"
- Review the three tabs in the test panel. Details shows the run status, Inputs shows the condition that was evaluated, and Outputs shows the result
The Outputs tab answers one question, whether the workflow would carry on.
The condition holds, so the workflow would continue
{ "continued": true }The condition fails, so the workflow would stop at this step
{ "continued": false }If you get false when you expected true, check the Inputs tab to see the exact values that were compared. A common cause is a number being compared as text, covered in the note at the end of this article.
Because the Continue If step records its inputs and outputs, the run details for a published workflow also show whether each run continued or stopped at this step.
Available comparison operators
Below are the available comparison operators that you can use when setting up the conditional logic.
| Operator | Explanation |
| is true | Checks if a value is true |
| is false | Checks if a value is false |
| is null | Checks if a value is null |
| is not null | Checks if a value is not null |
| is empty | Checks if an array is empty |
| is not empty | Checks if an array is not empty |
| equals | Checks if two values are equal |
| does not equal | Checks if two values are not equal |
| greater than | Checks if a value is greater than another |
| greater than or equal | Checks if a value is greater than or equal to another |
| less than | Checks if a value is less than another |
| less than or equal | Checks if a value is less than or equal to another |
| starts with | Checks if a string starts with a specific value |
| does not start with | Checks if a string does not start with a value |
| contains | Checks if a string contains a value |
| does not contain | Checks if a string does not contain a value |
Note: Conditions in the Continue If step expect data in the Value 1 field to be in text format. If you are using a field that contains numeric data, add a Number to text Helper step before the Continue If step to make sure the condition is evaluated correctly.