> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Subtract

> Subtract each later number from the first.

The **Subtract** action starts with the first number, then subtracts every
remaining number from it in order.

## Inputs

| Input       | Type            | Required | Description                                |
| ----------- | --------------- | -------- | ------------------------------------------ |
| **Numbers** | List of numbers | Yes      | At least two values, in calculation order. |

## Outputs

| Output         | Type   | Description                        |
| -------------- | ------ | ---------------------------------- |
| **Difference** | Number | The result after all subtractions. |

For example, `20`, `3`, and `2` are evaluated as `20 - 3 - 2`, producing `15`.
Empty repeat slots are treated as `0`.
