INTERACT FORUM

Please login or register.

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

Author Topic: Multi-term smartlist?  (Read 957 times)

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Multi-term smartlist?
« on: March 19, 2014, 05:36:50 pm »

How may I make a smartlist of the form (a and b) or (c and d)?

Since Help says operator or is available, I tried

([Artist]="canta Ruben Juarez" [Name]=[A Homero]) or ([Artist]="canta Carlos Gardel" [Name]=[A la luz del candil])

but this gets changed to

([Artist]="canta Ruben Juarez" [Name]=[A Homero]) ([Artist]="canta Carlos Gardel" [Name]=[A la luz del candil])

:(
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Multi-term smartlist?
« Reply #1 on: March 19, 2014, 05:52:37 pm »

The code that converts between Import / Export in the Edit Search dialog needs some bug fixes.  It will botch many phrases when trying to place them back into the wizard form.

In this case, an OR needs an extra set or parens.  You have essentially:

   (A and B) or (C and D)

Instead use:

   ((A and B) or (C and D))

Alternatively, you can build the AND and OR groupings using the little brackets to the left and right of a search rule set in the Edit Search box.  Hover your mouse just left or right of a beginning/end of a rule.
Logged
The opinions I express represent my own folly.

chrisjj

  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Multi-term smartlist?
« Reply #2 on: March 19, 2014, 06:30:28 pm »

 ((A and B) or (C and D))

Thanks. That works. And FTR also when lengthened thus: ((A and B) or (C and D) or (E or F)).

Logged
Pages: [1]   Go Up