PlayMaker Feedback > Action Requests

Array Add Difference/Shared

(1/1)

westingtyler:
I want to compare two arrays A and B. Any entries contained in both, will be added to a third array C "Shared". Any entries that only one array B contains, will be added to a fourth array D "New Entries".

Perhaps these should be two separate actions instead of one.

jeanfabre:
hi,

 you are better off doing that in a loop.

reset C and D
loop through A: for each item in A contained in B, add to C
loop through B: for each item in B not contained in A, add to D

that's it.

 Bye,

 Jean

Navigation

[0] Message Index

Go to full version