# Subtract

## Overview

![The Subtract Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-4525dec0a10937ae0e9d681bb446b8629a61b99c%2Fsubtractupdatedimage.png?alt=media)

**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**](https://docs.incari.com/incari-studio/2023.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Subtract Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-a70c1a9a90dda600f8d13b935be3166eeb07c93e%2Fnode-subtract2-attr.png?alt=media)

| 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.                                                                                             |
