INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: mark_h on September 08, 2018, 09:25:06 am

Title: [Request] Listcombine() - only return common entries
Post by: mark_h on September 08, 2018, 09:25:06 am
Trying to find a way to extract common entries from two lists - stumped at the moment...

I think an extention to listcombine() is the best (only?!) possible solution - a modifier that when used, combines two lists returning only the common elements in both lists...



Title: Re: [Request] Listcombine() - only return common entries
Post by: Matt on September 08, 2018, 12:05:17 pm
I can probably code something.  Stay tuned.  Thanks!
Title: Re: [Request] Listcombine() - only return common entries
Post by: Matt on September 08, 2018, 12:25:50 pm
I just started playing and I see this is already possible.

This expression:
ListCombine(a;b,b;c,;,;,1)

Returns b.  That's the only common list value in the lists.

So try pushing 1 as the final parameter of the ListCombine(...) expression.
Title: Re: [Request] Listcombine() - only return common entries
Post by: mark_h on September 08, 2018, 12:31:42 pm
Thanks, Matt!!  I misread the wiki entry for the command :/  Apologies for wasting your time!
Title: Re: [Request] Listcombine() - only return common entries
Post by: ferday on September 09, 2018, 08:09:53 am
Thanks, Matt!!  I misread the wiki entry for the command :/  Apologies for wasting your time!

I learned something so I say no time has been wasted.  interesting stuff