🤖 How to compare two values in two arrays?

The following scenario will do the trick for you:​

  • The “Set multiple variables” module is there to take the ids from the input, enclose them in separate arrays and compare them.

  • The current value array is then split and each value (id) from there is considered only if it is contained inside the “previous value” array.

  • The second route of the scenario does the exact opposite, i.e. the id is considered only if it is not inside the previous array.

  • When setting up the filter, it’s important to select the “contains” / “does not contain” conditions from the Array operators section.


In case you wanna check out the scenario “from the inside” here’s the blueprint you can import into your editor:

blueprint_comparing_arrays.json (14.2 KB)




Helpful Links:
:make: Array in Help Center

1 Like

What do the functions inside the set multiple variables look like?
Thanks