List Intersection
Returns the items that appear in both of two lists, compared by a given path. Use it to find the common values between two lists.
What it does
- Compares the two lists using the given JSON paths (
$.for simple lists). - Returns the items present in both lists, and the items not in common.
- Reports whether any intersection exists and the number of matches.
Inputs
| Name | Type | Description |
|---|---|---|
| List 1 | List | First list |
| List 2 | List | Second list |
| First JSON Path | String | JSON path for the first list. '$.' can be used for simple lists |
| Second JSON Path | Optional String | JSON path for the first list. Default: path1 |
| Ignore Case | Optional Boolean | Ignore case when comparing values |
Outputs
| Name | Type | Description |
|---|---|---|
| Intersection Exists? | Boolean | Whether there is an intersection between the two lists |
| Result List | List | Intersection list |
| Opposite Result List | List | Opposite of Intersection list |
| Number of items | Number | Number of items in the result list |
Notes
- Can ignore case when comparing values.
- If only the first path is provided, it is used for both lists.