# Exclusions

The 'Exclusions' step allows you to protect your business, by making decisions on which quotes, prices, customers or risks you want to reject, based on any factor.&#x20;

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2F2yhbvkxB9C5gk0tvs3hF%2FScreenshot%202024-04-29%20at%2017.37.25.png?alt=media&#x26;token=77cd2eb0-9a4f-4d9e-8f04-f089314cbf6c" alt="" width="375"><figcaption><p>The Exclusion step</p></figcaption></figure>

{% hint style="info" %}
**How might you use the 'Exclusions' step?**

If you were building a pricing model for insurance, there may be certain kinds of risk that you don't want to accept on your book at all.&#x20;

For example, you may want to create a rule to reject quotes based on the age of something being too old, which could apply to a property, a vehicle or even a customer.
{% endhint %}

## 1. Add a new exclusion

Once you've added the 'Exclusions' step and named it, like you will with any other step in the Build tool ([more on that here](https://swallow-1.gitbook.io/swallow/build/step-builder)), you'll need to add your exclusion rules.

To get started, click the cog symbol in the top right of the 'Exclusions' step.

Once you've opened the step, click the 'ADD' button in the top right of exclusions table.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FK2PFa4BvCRlReI4JGFwG%2FScreenshot%202024-04-22%20at%2017.24.31.png?alt=media&#x26;token=992dc539-36e8-484f-82d7-3bb7f5eb85e0" alt="" width="95"><figcaption><p>ADD button for new exclusions</p></figcaption></figure>

## 2. Create your exclusion

There are only two elements to each exclusion, whether you're adding a new exclusion or editing an existing one.

### Name

Give your exclusion a descriptive name. This will be shown in your table of exclusions, so make sure it's unique and easy to understand.

### Expression

Write an expression to build your exclusion rule. This will need to include which data input(s) you want to be looking at, and define the conditions that you will use to reject a quote.&#x20;

Here's an example of how you would structure an expression using the vehicle's manufacture date as an input, choosing to reject any quotes for vehicles manufactured before the year 2000:

`({{vehicle_year_of_manufacture}} < 2000)`

To learn how to structure your expression in more detail, debug and to see the full glossary, check out our full page on [syntax](https://swallow-1.gitbook.io/swallow/your-first-model/essential-concepts/syntax "mention").

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2F2HSYA14vRQtQMF7qQhG9%2FScreenshot%202024-05-11%20at%2017.30.33.png?alt=media&#x26;token=33b94668-80ff-41a2-8564-73e116e1ca8f" alt="" width="563"><figcaption><p>Adding a new exclusion dialogue</p></figcaption></figure>

## 3. Save your new exclusion

Once you're happy with the exclusion you've added, just press the 'Save' button in the bottom right of the modal and you're ready to add more exclusions to the table from your Collection if you want to.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FhZfdZksYADcmIRJKvgKw%2FScreenshot%202024-04-29%20at%2013.07.37.png?alt=media&#x26;token=78754f60-9edb-487d-aeaf-c5164a94c872" alt="" width="69"><figcaption><p>Save exclusion button</p></figcaption></figure>

## 4. Add, edit or delete exclusions

To add more new exclusions, repeat the steps above. Alternatively, you can edit and delete exclusions you've already added.&#x20;

To bulk edit all exclusions, you can use the buttons to the top left of the exclusions table download as a CSV, edit and then re-upload your exclusions table.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2Fvga1sH0AjeKpdNdUyCrQ%2FScreenshot%202024-05-11%20at%2018.16.11.png?alt=media&#x26;token=fbda9663-f8c9-465b-b34e-8f0b1325766d" alt="" width="175"><figcaption><p>Upload and download buttons</p></figcaption></figure>

## 5. Save the step

Once you're happy with all of the exclusions in your table, just press the 'Save' button in the top right of the screen. You're now ready to head back to the 'Build' screen.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FSsAAZhH3dnz67i3jRdKZ%2FScreenshot%202024-05-11%20at%2016.21.13.png?alt=media&#x26;token=30849d88-4e70-4b00-9380-77b35601f69e" alt="" width="111"><figcaption><p>Save step button</p></figcaption></figure>
