---
title: containsMultiple
slug: campaign/docs/containsmultiple
createdAt: 2026-07-02T19:01:44.226Z
---

**Type**: Boolean\[ ]

**Parameters**

| Name             | Type     | Value                      |
| ---------------- | -------- | -------------------------- |
| sessionId        | String   | ID of the session          |
| recipientListIds | long\[ ] | IDs of the recipient lists |
| recipientId      | String   | ID of the recipient        |

**Return values**

For each recipient list:

- true: Recipient already exists
- false: Recipient does not exist or an entry exists but the opt-in process has not been finished yet (i.e., the double opt-in link has not been clicked)

**Code structure**

```javascript
boolean[] containsMultiple(String sessionId, long[] recipientListIds, String recipientId)
```
