***

title: The OR block
approved: 2025-11-24T00:00:00.000Z
topictype: reference
slug: docs/postman-flows/reference/blocks/or
max-toc-depth: 2
ux: v12
-------

The **OR** block receives data with two inputs, then sends the data from the input that received data first. The **OR** block is useful in flows where there are two paths leading to the same block (like an [**Output**](/docs/postman-flows/reference/blocks/output-module/) block) and only one path has data in a given run. Routing two paths through an **OR** block prevents the final block from waiting for data from both paths.

## Inputs

The **OR** block has two input ports. You can only connect a single block to each input port. The first input port that receives data routes the data to the output port.

## Output

The **OR** block has a single output port. It sends data from the input port that received data first.

## Example

To see the **OR** block in an example flow, check out [Flow Snippets: OR](https://www.postman.com/postman/flows-snippets/flow/691e4a1672545c0014faefd6).
