INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [Request] Listcombine() - only return common entries  (Read 477 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1852
[Request] Listcombine() - only return common entries
« 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...



Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41967
  • Shoes gone again!
Re: [Request] Listcombine() - only return common entries
« Reply #1 on: September 08, 2018, 12:05:17 pm »

I can probably code something.  Stay tuned.  Thanks!
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41967
  • Shoes gone again!
Re: [Request] Listcombine() - only return common entries
« Reply #2 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.
Logged
Matt Ashland, JRiver Media Center

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1852
Re: [Request] Listcombine() - only return common entries
« Reply #3 on: September 08, 2018, 12:31:42 pm »

Thanks, Matt!!  I misread the wiki entry for the command :/  Apologies for wasting your time!
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: [Request] Listcombine() - only return common entries
« Reply #4 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
Logged
Pages: [1]   Go Up