# CASE: how to check if a document has been added

**URL:** https://community.silverfin.com/t/case-how-to-check-if-a-document-has-been-added/799
**Category:** Cases
**Tags:** case, platform
**Created:** [April 4, 2018, 9:06am UTC](https://community.silverfin.com/t/case-how-to-check-if-a-document-has-been-added/799 "2018-04-04T09:06:28Z")
**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: [April 4, 2018, 9:06am UTC](https://community.silverfin.com/t/case-how-to-check-if-a-document-has-been-added/799/1 "2018-04-04T09:06:29Z")

</div>

If you have following code to make it possible to add an attachment :

```auto

{% input custom.director.pay_check as:file %} 

```

then you can check whether or not a document has been added, by adding `.document` to the object with an if-statement, like this :

```auto

{% if custom.director.pay_check.document %}
There's a file added
{% endif %} 

```
