# Subtract

## Overview

![The Subtract Node.](https://1582035224-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-3848250649%2Fuploads%2Fgit-blob-c92bba81217c86cd84e4d1d2c8b1f048e1516bf8%2Fnode-subtract.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.

## Attributes

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