---
title: "Use the OR Function to Test If Any Condition Is Met"
slug: "or-function"
description: "Learn to simplify conditional logic in Pigment with the OR function. Check if one or more conditions are true in your formulas."
updated: 2025-05-30T09:38:33Z
published: 2025-08-22T12:00:18Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.pigment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OR function

## Description

Tests to see if at least one condition is met.

## Syntax

```plaintext
logical1 OR logical2…
```

## Return type

Boolean (TRUE or FALSE)

## Examples

| **Case** | **Results** | **Return Type** |
| --- | --- | --- |
| `TRUE OR FALSE` | `TRUE` | `boolean` |
| `x &gt; 2 OR y &gt; 2` | `TRUE` if x or y are greater than 2, `FALSE` otherwise | `boolean` |
| `TRUE OR Blank` | `TRUE` | `boolean` |
| `Blank OR TRUE` | `TRUE` | `boolean` |
| `FALSE OR Blank` | `FALSE` | `boolean` |
| `Blank OR Blank` | `Blank` | `boolean` |

---

**Excel equivalent**: [OR(logical1, [logical2], ...)](https://support.microsoft.com/en-us/office/or-function-7d17ad14-8700-4281-b308-00b131e22af0)

**See also**: [AND](/v1/docs/and-function)

<style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style><style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style>
