Gmail multiple attachments filter images

i want to filter out anything except pdf but

{{ $binary.attachment_00.fileExtension }} works if there is only one attachment but i f there are more attachments this fails

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

anyone? anyone here?

{{ Object.values($binary).some(a => a.mimeType.includes('pdf')) }} on the filter node will pass all attachments if there is a pdf