# CASE: use the type of account in an account collection

**URL:** <https://community.silverfin.com/t/case-use-the-type-of-account-in-an-account-collection/608>\
**Category:** Cases\
**Tags:** variables, input, case, as\_attribute\
**Created:** [January 25, 2018, 12:49pm UTC](https://community.silverfin.com/t/case-use-the-type-of-account-in-an-account-collection/608 "2018-01-25T12:49:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [January 25, 2018, 12:49pm UTC](https://community.silverfin.com/t/case-use-the-type-of-account-in-an-account-collection/608/1 "2018-01-25T12:49:32Z")

</div>

With an account collection, we use mostly a range of numbers to define which accounts should be able to be selected :

```auto
{% input custom.ev.accounts as:account_collection range:10,11,13,14 %}

```

resulting in this :

![58](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/e3ceaabe758f62dedca1a6e3852e5beb8339464d.png)

but

💡 you could also use the type of the accounts. Those are defined here :

 ![11](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/8fe20581aad12319cf20ef72b596cdbef99091fa.png)

So you could adjust your code to this :

```auto
{% input custom.ev.accounts as:account_collection range:equity %}

```

It will result in the same selection, but with that difference you don’t need to add all those different ranges in your code.

Also a default can be used the same way (mind the quotes though) :

```auto
{% input custom.ev.accounts as:account_collection range:equity default:'equity' accounts_var:equity %}

```

These are the possible types :

- equity
- liability
- asset
- expense
- income
