# OR Function

> Test whether at least one condition is true with the OR formula function of TX Sheet Control: logical values, numbers, ranges and the #VALUE! error.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > OR Function
- **195 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/or/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/or/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/or/llms-full.txt

---

Return TRUE when at least one condition is true, and FALSE when all are false. The arguments are conditions, logical values, numbers, references or arrays; the number 0 counts as FALSE and any other number as TRUE. Text in references is ignored, and arguments without any logical value return `#VALUE!`.

### Syntax

```text
OR(logical1, logical2)
```

Category: Logical. Minimum arguments: 1. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=OR(10<5,20<30)
```

The formula returns TRUE, because 20<30 is true.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [OFFSET Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/offset/llms-full.txt)
- **Next:** [PDURATION Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/pduration/llms-full.txt)
