# Filter help

**URL:** <https://community.make.com/t/filter-help/14197>\
**Category:** Questions\
**Tags:** filters\
**Created:** [August 9, 2023, 12:14pm UTC](https://community.make.com/t/filter-help/14197 "2023-08-09T12:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orange\_Property](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@Orange\_Property](https://community.make.com/u/Orange_Property)\
**Post date:** [August 9, 2023, 12:14pm UTC](https://community.make.com/t/filter-help/14197/1 "2023-08-09T12:14:53Z")

</div>

Hi there

I’m trying to create a filter that does not allow jpgs and pngs (i’m trying to clear out emails that attach signature images as images).

What am I doing wrong? Any hep welcomed 🙂

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/0/00e08307bf13ec208d51330c2cd69c6bf6df3dbf.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/f/fc33b470bef4a2bf911a6d7165b87a5cbed0dc30.png)

---

<div class="post-metadata">

**Author:** ![ecomsilio](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/ecomsilio/32/104_2.png) [@ecomsilio](https://community.make.com/u/ecomsilio)\
**Post date:** [August 9, 2023, 9:05pm UTC](https://community.make.com/t/filter-help/14197/2 "2023-08-09T21:05:47Z")

</div>

Hi @Orange_Property

You need to split the filter:

Attachment exists  
**and**  
Does not end with… .jpg  
**or**  
Attachment exists  
**and**  
Does not end with… .png

Cheers,  
Gijs

---

<div class="post-metadata">

**Author:** ![Orange\_Property](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@Orange\_Property](https://community.make.com/u/Orange_Property)\
**Post date:** [August 10, 2023, 9:45am UTC](https://community.make.com/t/filter-help/14197/3 "2023-08-10T09:45:27Z")

</div>

Thanks for the help!

I still can’t make this work the way I need it to.

- I need to receive the email with attachments (sometimes multiple)
- First gate, is there an attachment at all? This I think is working well
- Then I believe I need to use an Iterator to split attachements out.

This is where i’m running into trouble

- I need to let any potential invoices through (pdfs mostly, but could be other doc types)
- But if there is ONLY pngs or jpgs attached I need to route to an email that tells the sender to resend with an attached invoice.

I cannot figure out the filter logic, because if I send a test with a PDF and a PNG, I get both the ‘thanks for sending an invoice’ and ‘you haven’t attached an invoice’ emails.

Would welcome any advice!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 7, 2023, 5:46pm UTC](https://community.make.com/t/filter-help/14197/4 "2023-12-07T17:46:51Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


