# NOT

The NOT function in Shedmate inverts the logical value of a condition. It returns TRUE if the original condition is false and FALSE if the original condition is true. It is useful for checking the opposite of a condition within an IF formula.

### Syntax:

```
IF(NOT(condition), value_if_true, value_if_false)
```

### Parameters:

{% code overflow="wrap" %}

```
condition (required): The condition to be inverted. It can be any expression that results in true (TRUE) or false (FALSE).
```

{% endcode %}

{% code overflow="wrap" %}

```
value_if_true (required): The value to be returned if the inverted condition is true.
```

{% endcode %}

{% code overflow="wrap" %}

```
value_if_false (required): The value to be returned if the inverted condition is false.
```

{% endcode %}

### Usage example:

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfqWhrTExCDzIxBjhof9qJ1RNuzsBYwlq-WictQLA--KGP36toPbpkqTts-EWY33IVCZCBLgMu0OIUszEGVjd9VHF03t0RFMMZecEDSMXQ6Mifryb9x4yqbkdMfyxkl6CyLQ4KRwfiSvqmk9R9vGFLmvi6k?key=ft9PKSxNRRf2UuAft3mHlg" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://shedmate.gitbook.io/shedmate-help/setting-up-shedmate/costing-database-and-pricing-calculations/variables/logical-operators/not.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
