Use Condition to Build Computer Vision Pipelines and Applications

Workflows allows you to integrate Condition with models, logic, and applications.
16,000+ organizations build with Roboflow

Connect Condition to other blocks to build a custom workflow

Create a branch of logic that runs only when a specified condition is met. This block is the "if statement" in Workflows. This block is responsible for flow-control in execution graph based on the condition defined in its body. Right now, this block is only capable to make conditions based on output of binary operators that takes two operands. *The `Condition` block only works when a single image is provided to the input of the `workflow` (or more precisely, both `left` and `right` if provided with reference, then the reference can only hold value for a result of operation made against single input). This is to prevent a situation when evaluation of condition for multiple images yield different execution paths.*
Flow Control


Control the flow of a workflow based on the result of a step.
This is some text inside of a div block.

Explore Popular Combinations Using Condition

No items found.

How to Build a Workflow

Learn how to use a low-code open source platform to simplify building and deploying vision AI applications.
cube icon

Choose a Block

Choose from 40+ pre-built blocks that let you use custom models, open source models, LLM APIs, pre-built logic, and external applications. Blocks can be models from OpenAI or Meta AI, applications like Google Sheets or Pager Duty, and logic like filtering or cropping.
connected blocks icon

Connect Blocks

Each block can receive inputs, execute code, and send outputs to the next block in your Workflow. You can use the drag-and-drop UI to configure connections and see the JSON definitions of what’s happening behind the scenes.
rocket icon

Deploy Workflows

You’ll receive an output of the final result from your Workflow and the format you want it delivered in, like JSON. Once your Workflow produces sufficient results, you can use the Workflow as a hosted API endpoint or self-host in your own cloud, on-prem, or at the edge.

Find Other Blocks in the Flow Control Category

No items found.

Deploy Workflows at Scale

Roboflow powers millions of daily inferences for the world’s largest enterprises on-device and in the cloud
Deploy your Workflows directly on fully managed infrastructure through an infinitely-scalable API endpoint for high volume workloads
Run Workflows on-device, internet connection optional, without the headache of environment management, dependencies, and managing CUDA versions.
Isolate dependencies in your software by using the Python SDK or HTTP API to operate and maintain your Workflows separate from other logic within your codebase
Supported devices include ARM CPU, x86 CPU, NVIDIA GPU, and NVIDIA Jetson

Customize Your Pipeline

Connect models from OpenAI or Meta AI, applications like Slack or Pager Duty, and logic like filtering or cropping.
View All Blocks