# Decrement

## Overview

![The Decrement Node.](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-7efd4644ed36da7487e3af7127e578dbb45c4a4f%2Fdecrementnode20241.png?alt=media)

**Decrement** decreases a value by a given step and outputs the new value.

It is comparable to the `--` operator in computer science, except for the fact that the *decrement step* varies, instead of being fixed at 1.

[**Scope**](https://docs.incari.com/incari-studio/2024.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Decrement Node Attributes.](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-c054c042c62d6d1a3c91f2894a7b7a2c08782368%2Fnode-decrement2-attr.png?alt=media)

| Attribute   | Type                                          | Description                                                                                                 |
| ----------- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `Data Type` | **Drop-down**                                 | The type of data that will be plugged into the `Input` **Socket** and returned via its `Output` **Socket**. |
| `Step`      | *Defined in the `Data Type`* ***Attribute***. | The default value of the `Step` **Socket**, if none is provided.                                            |

## Inputs

| Input             | Type                                          | Description                                                           |
| ----------------- | --------------------------------------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                     | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Input`           | *Defined in the `Data Type`* ***Attribute***. | The value to be decremented.                                          |
| `Step`            | *Defined in the `Data Type`* ***Attribute***. | The amount that the value will be decremented by.                     |

## 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 decremented value.                                                                                                                 |

## See Also

* [**Increment**](https://docs.incari.com/incari-studio/2024.1/toolbox/math/increment)
