# $decrement — Subtracts from a number variable and returns the new value

## Syntax

```
$decrement[variable;(amount);(scope);(target);(guildID)]
```

## Parameters

- **variable** *(text, required)* — The variable name.
- **amount** *(number, optional)* — Default: 1.
- **scope** *(text, optional)* — Same as `$increment`.
- **target** *(ID, optional)* — Same as `$increment`.
- **guildID** *(ID, optional)* — Same as `$increment`.

## Return Value

- number.

## Usage

```
$decrement[coins;10]
```

## Example

```bdfd
$sendMessage[$decrement[coins;10]]
```
