Add conditional logic to your workflow with the "Continue if" action.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

  1. Run the steps above the Continue If step first, so their data is available for the condition to check
  2. Open the Continue If step and click "Test step"
  3. 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.

OperatorExplanation
is trueChecks if a value is true
is falseChecks if a value is false
is nullChecks if a value is null
is not nullChecks if a value is not null
is emptyChecks if an array is empty
is not emptyChecks if an array is not empty
equalsChecks if two values are equal
does not equalChecks if two values are not equal
greater thanChecks if a value is greater than another
greater than or equalChecks if a value is greater than or equal to another
less thanChecks if a value is less than another
less than or equalChecks if a value is less than or equal to another
starts withChecks if a string starts with a specific value
does not start withChecks if a string does not start with a value
containsChecks if a string contains a value
does not containChecks 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.

 

Was this article helpful?
2 out of 3 found this helpful

Articles in this section