# Boolean

## Introduction

A **Boolean** is a **Data Type**, which represents one of two values: *true* or *false*.

Although **Booleans** themselves are conceptually simple, and take up very little memory, they are an integral part of **Incari**'s **Logic** system, and computer programming in general, due to their use in **Flow Control**. More specifically, *Boolean expressions* are used to define the conditions that determine which actions will be performed, dependending on whether they are evaluated as being *true* or *false*.

## Boolean Value

The [**Bool Value Node**](/incari-studio/2023.1/toolbox/math/boolean/bool-value.md) simply stores a **Boolean** value in its internal *state*, which can be defined before the **Project**'s execution and can be modified and retrieved at runtime.

## Logical Operator Nodes

*Logical operator* **Nodes** combine two or more **Boolean** expressions to yield a **Boolean** value based on the inputs' logical relationship to one another. These are:

* [**AND**](/incari-studio/2023.1/toolbox/math/boolean/and.md) - Returns *true* if all of the **Node**'s inputs are also *true*. The equivalent of the `&&` operator in computer programming.
* [**OR**](/incari-studio/2023.1/toolbox/math/boolean/or.md) - Returns *true* if at least one of the **Node**'s inputs are *true*. The equivalent of the `||` operator in computer programming.

There is also the [**Negate Node**](/incari-studio/2023.1/toolbox/math/boolean/negate.md), whose output is simply the **Boolean** value *opposite* to its input. This is used to mean *NOT* and is the equivalent of the `!` operator in computer programming.

## Contents

* [**AND**](/incari-studio/2023.1/toolbox/math/boolean/and.md)
* [**Bool Value**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2023.1/toolbox/math/boolean/bool-value.mde)
* [**Negate**](/incari-studio/2023.1/toolbox/math/boolean/negate.md)
* [**OR**](/incari-studio/2023.1/toolbox/math/boolean/or.md)

## External Links

* [*Logical operation*](https://www.computerhope.com/jargon/l/logioper.htm) on Computer Hope.


---

# 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://docs.incari.com/incari-studio/2023.1/toolbox/math/boolean.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.
