INTERACT FORUM

Please login or register.

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

Author Topic: How to create "A and (B or C)" smartlist?  (Read 1222 times)

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
How to create "A and (B or C)" smartlist?
« on: April 22, 2013, 09:29:15 pm »

How can I create a smartlist that includes tracks in a certain playlist that also include either (or both) of two strings in Name?

I can find no way of getting this combination. Currently I have to use separate smartlist for each string, and a third to combine.

Thanks.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How to create "A and (B or C)" smartlist?
« Reply #1 on: April 22, 2013, 10:38:49 pm »

playlistid==playlist id ([Name]="black" or [Name]="white")
Logged
The opinions I express represent my own folly.

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: How to create "A and (B or C)" smartlist?
« Reply #2 on: May 02, 2013, 06:17:57 pm »

Thanks, MrC. That works fine.

I assume code (rather than GUI) is the only way to input this. Though GUI does output the round brackets: http://img6.imageshack.us/img6/937/regionzl.png .

if or is replaced by and, the round brackets show, er, as square: http://img89.imageshack.us/img89/2293/regionv.png
Logged

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Re: How to create "A and (B or C)" smartlist?
« Reply #3 on: May 02, 2013, 07:20:05 pm »

The ( and [ are available to the left and right of the input fields in the GUI.
Click them multiple times to toggle them.
I find it easier to just write the code for more complicated things.
Logged

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: How to create "A and (B or C)" smartlist?
« Reply #4 on: May 02, 2013, 07:29:42 pm »

Click them multiple times to toggle them.

Thanks. I wonder why these buttons are hidden.

Is there any documentation of the combinations? Such as (...])


?
Logged
Pages: [1]   Go Up