Skip to main content
All CollectionsBuild AutomationsOperators
Operators in Torq: Workflow Flow Control
Operators in Torq: Workflow Flow Control

Learn about Torq's operators and how to efficiently use them for workflow logic control and definition.

Updated today

Explore the operators available in Torq, enabling you to steer and define your workflow's progression. Each operator is linked to a page outlining more advanced options. You can disable operators in the designer, execute the workflow without them, and enable them later.

Torq's operators

Operators Overview

  • If: Guides workflow direction based on the evaluation of conditions.

  • Switch: Executes one of multiple branches, prioritizing conditions from left to right. The Switch operator is available when hovering over the If operator.

  • Loop: Repeats steps for each item in a collection, until a condition is met, or a set number of times.

    • Collect: Aggregates loop outcomes into an array. The Collect operator is available when hovering over the Loop operator.

    • Break: Terminates the loop process immediately, allowing the workflow to continue to the next step after the loop. The Break operator is available when hovering over the Loop operator.

  • Wait: Pauses the workflow, changing the execution status to On hold for the defined duration.

  • Nested Workflow: Embeds a specified workflow as a subroutine.

  • Exit: Terminates the workflow. Add parameters to the Exit operator to create an output schema for the workflow, enabling the passing of information from the workflow execution to the entity that triggered it.

  • Parallel Executions: Simultaneously executes multiple branches. To create parallel branches, drag a step onto the one you wish to run in parallel.

  • Data Transformation: Uses AI to create JQ code as instructed and then applies them to the inputted JSON data.

  • Deduplicate: Identifies and processes duplicate entries across workflow executions, based on your specified criteria and time range.

It is recommended you rename operators with descriptive names for clarity.

Disable Operators

Disabling an operator keeps it in the designer but excludes it from workflow executions.

To disable an operator, select it in the designer and click the Disable icon in the menu above it. The steps in the operator's scope will also be disabled.

Disable an operator
Did this answer your question?