# CASE: check if an attachment (or attachments) are added

**URL:** <https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225>\
**Category:** Cases\
**Tags:** drops, as\_attribute, drop\_custom, methods, use\_case\
**Created:** [October 1, 2018, 12:34pm UTC](https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225 "2018-10-01T12:34:12Z")\
**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:** [October 1, 2018, 12:34pm UTC](https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225/1 "2018-10-01T12:34:12Z")

</div>

If you want to check whether or not documents (attachments) have been added to a database variable, you can by using the `document` method:

```auto
{% if custom.attachements.things.document == blank %}
  {% ic %}
    {::infotext as="hover"}
      {% t "Please add the missing invoices as PDF" %}
    {:/infotext}
  {% endic %}  
{% endif %}

{% input custom.attachements.things as:file_collection %} 

```

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