# Is Less Equal

## Overview

![The Is Less Equal Node.](/files/7MhiwxBAFiuX8TmbEnP2)

**Is Less Equal** is a ***Relational Expression*** **Node**, which compares two input values, and returns a **Boolean**, based on how the two values compare to each other in terms of *inequality*. The **Node** has two modes, determined by the `Mode` **Attribute**:

1. `IsLess` - Whether the value of `A` is less than the value of `B`.
2. `IsLessEqual` - Whether the value of `A` is less than *or* equal to the value of `B`.

*Relational expressions* are frequently used in combination with **Branch Nodes** and *logical operator* **Nodes** ([**AND**](/incari-studio/2023.1/toolbox/math/boolean/and.md), [**OR**](/incari-studio/2023.1/toolbox/math/boolean/or.md), and [**Negate**](/incari-studio/2023.1/toolbox/math/boolean/negate.md)) to create *conditional logic*, and are essential for building complex systems.

Due to their nature, *inequality* operations only work for *numerical data types*.

[**Scope**](/incari-studio/2023.1/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Is Equal Node Attributes.](/files/56V68KFS9yT4S6qXoE8N)

| Attribute         | Type                                          | Description                                                             |
| ----------------- | --------------------------------------------- | ----------------------------------------------------------------------- |
| `Data Type`       | **Drop-down**                                 | The type of data that will be plugged into the `A` and `B` **Sockets**. |
| `Mode`            | **Drop-down**                                 | The type of expression that will be used when comparing the values.     |
| `Default Value A` | *Defined in the `Data Type`* ***Attribute**.* | The value of `A` if no value is provided via the **Node's** **Socket**. |
| `Default Value B` | *Defined in the `Data Type`* ***Attribute**.* | The value of `B` if no value is provided via the **Node's** **Socket**. |

## Inputs

| Input             | Type                                         | Description                                                           |
| ----------------- | -------------------------------------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                    | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `A`               | *Defined in the* `Data Type` ***Attribute*** | The value to be compared with `B`.                                    |
| `B`               | *Defined in the* `Data Type` ***Attribute*** | The value to be compared with `A`.                                    |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard output **Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `C`                | **Bool**  | Returns *true* if the value of `A` is less than (or equal to, depending on `Mode`) to `B`. If not, then it returns *false*.            |

## External Links

* [*Relational operator*](https://en.wikipedia.org/wiki/Relational_operator) on Wikipedia.


---

# 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/flow-control/is-less-equal.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.
