# Score

> Adds up points from rules and saves the total as flow.score for later steps to test.

| | |
|---|---|
| Type | `score` |
| Group | Data |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `rules` | Points | An array of objects, each {"f": a field, "op": an operator, "v": a value, "points": a whole number from -1000 to 1000}. |  | Each rule that holds adds its points. The total is flow.score. Points may be negative. |

## Fields it adds

| Field | What |
|---|---|
| `flow.score` | Score (a number) |

## In a flow document

```json
{
  "id": "score1",
  "type": "score",
  "settings": {}
}
```
