playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Playmaker 1.9.1 Released!
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
»
Array Add Difference/Shared
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Array Add Difference/Shared (Read 1675 times)
westingtyler
Sr. Member
Posts: 277
Array Add Difference/Shared
«
on:
September 26, 2019, 09:13:10 PM »
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.
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Array Add Difference/Shared
«
Reply #1 on:
October 17, 2019, 05:29:11 AM »
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
»
Array Add Difference/Shared