> For the complete documentation index, see [llms.txt](https://guides.noloco.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.noloco.io/data/collections/formulas/operators/logic.md).

# Logic operators

All logic and comparison operators supported in Noloco [formulas](/data/collections/formulas.md). Use these for conditional values, boolean composition, and value comparisons.

**Available operators:** `<`, `>`, `=`, `AND`, `OR`, `NOT`, `IF`, `TRUE`, `FALSE`, `NULL`, `ISNUMBER`.

***

### <

`value1 < value2`

Returns `true` if the first value is less than the second.

**Example:** `1 < 2`

### >

`value1 > value2`

Returns `true` if the first value is greater than the second.

**Example:** `1 > 2`

### =

`value1 = value2`

Returns `true` if the first value equals the second.

**Example:** `1 = 2`

### AND

`AND(logicValue, logicValue, ...)`

Returns `true` if all arguments are `true`.

### OR

`OR(logicValue, logicValue, ...)`

Returns `true` if any argument is `true`.

### NOT

`NOT(logicValue)`

Returns the opposite of a logical value.

**Example:** `NOT(TRUE())` returns `FALSE()`

### IF

`IF(logicValue, trueValue, falseValue)`

Returns one value when a condition is `true`, and another when it is `false`.

### TRUE

`TRUE()`

Returns the value `true`.

### FALSE

`FALSE()`

Returns the value `false`.

### NULL

`NULL()`

Returns the value `null`.

{% hint style="warning" %}
**Must be called as `NULL()` with parentheses.** Writing `NULL` (without parentheses) is not valid and will cause the formula to fail. The same applies to `TRUE()` and `FALSE()`.
{% endhint %}

### ISNUMBER

`ISNUMBER(value)`

Returns `true` if the argument is a number.

***

### Related

* [Formulas overview](/data/collections/formulas.md)
* [Examples](/data/collections/formulas/examples.md) — see "Joining text fields" for an `IF`/`OR`/`ISBLANK` pattern
* [Date & time operators](/data/collections/formulas/operators/date-and-time.md)
* [Math operators](/data/collections/formulas/operators/math.md)
* [Text operators](/data/collections/formulas/operators/text.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guides.noloco.io/data/collections/formulas/operators/logic.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
