> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/toolbox/math/subtract.md).

# Subtract

## Overview

![The Subtract Node.](/files/54RMNhWT7tpTZrkrfcId)

**Subtract** is a *basic arithmetic operation* **Node**, which performs a sequence of subtraction operations, from top to bottom, for each `Input` **Socket**, whose value is subtracted from the result of the previous operation.

This is the equivalent of the subtraction (`-`) operation in computer science and mathematics.

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

## Attributes

![The Subtract Node Attributes.](/files/nGd0SVKiSjz9EYzjnmjP)

| Attribute        | Type                                          | Description                                                                                        |
| ---------------- | --------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `Data Type`      | **Drop-down**                                 | The type of data that will be plugged into the `Input` **Sockets**.                                |
| `Default Inputs` | *Defined in the `Data Type`* ***Attribute***. | The number of `Input` **Sockets** and their default values if they have no data connected to them. |

## Inputs

| Input             | Type                                          | Description                                                           |
| ----------------- | --------------------------------------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                     | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Input [n]`       | *Defined in the `Data Type`* ***Attribute**.* | The values to be subtracted sequentially, from top to bottom.         |

## 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. |
| `Output`           | *Defined in the `Data Type`* ***Attribute**.* | The result of the subtraction operation/s.                                                                                             |
