Continue If Block

Control workflow execution based on dynamic conditions

The Continue If block evaluates a condition using Jinja templating and determines whether the workflow should proceed. This block is useful for controlling the flow of execution in a Scout workflow based on dynamic states.

Configuration (Required)

condition
codeRequired

Template that should evaluate to True or False. This input uses Jinja templating to dynamically assess conditions based on the current state of the workflow.

See Workflow Logic & State > State Management for details on using dynamic variables in this block.

Outputs

The block outputs a JSON object containing:

  • evaluated_condition: A boolean indicating whether the condition evaluated to true.
  • details: Includes metadata such as the response format and the time taken to evaluate the condition in milliseconds.

Usage Context

Use this block to dynamically control the execution flow of your workflow based on conditions evaluated at runtime.

Best Practices

  • Ensure the condition template is correctly formatted to evaluate to a boolean value. This is crucial for the block to function as intended.
  • Utilize the state available in the workflow context to create dynamic conditions. This allows for flexible and context-aware decision-making within your workflows.
  • Handle cases where the condition might not evaluate as expected, to avoid workflow disruptions. Implement error handling to manage potential issues.
Built with