INTERACT FORUM

Please login or register.

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

Author Topic: Writing file search in a smartlist with OR rules instead of AND rules  (Read 2078 times)

djfalstaff

  • Recent member
  • *
  • Posts: 43

I tried using the interface to do search for two different files into an OR search by the () modifiers in GUI.
It didn't work and the raw expression output looked like this.

Code: [Select]
[Filename (name)]="02/-Positive Touch/-Journey/-Raised on Radio"
[Filename (name)]="12/-A Dangerous Mind/-Within Temptation/-The Silent Force"

How do I turn this into a OR query by modifying the expression directly?
Logged

djfalstaff

  • Recent member
  • *
  • Posts: 43
Re: Writing file search in a smartlist with OR rules instead of AND rules
« Reply #1 on: January 08, 2017, 06:52:38 am »

I found the answer.

Code: [Select]
([Filename (name)]="02/-Positive Touch/-Journey/-Raised on Radio" or [Filename (name)]="12/-A Dangerous Mind/-Within Temptation/-The Silent Force") -[Filename (name)]="conflicted"

It should look like this.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Writing file search in a smartlist with OR rules instead of AND rules
« Reply #2 on: January 08, 2017, 07:35:07 am »

Correct!

There's also a hidden feature in the smartlist editor that you might want to use.  In the rules list up top, there's a blank spot to the left and right of each line.  If you click in the blank area, it will turn on a parenthesis.  If you keep clicking, it will cycle between parenthesis, square brackets, and combinations of the two.

I almost never use this.  I prefer to edit the expression directly in the Import/Export dialog.  But you might want to try it and see if it's faster and/or easier for you.

Looks like you're making a lot of progress with MC expressions.  Good for you!  :)

Brian.
Logged

djfalstaff

  • Recent member
  • *
  • Posts: 43
Re: Writing file search in a smartlist with OR rules instead of AND rules
« Reply #3 on: January 08, 2017, 07:42:07 am »

Thanks!
I really need help on another post I have.
I'm really close to the final answer and just others to help me bring it to the finish line.
Could you take a look at it?

https://yabb.jriver.com/interact/index.php/topic,108732.msg753409.html#msg753409
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Writing file search in a smartlist with OR rules instead of AND rules
« Reply #4 on: January 08, 2017, 08:39:02 am »

See the linked thread above for my comments.  I'm not sure if what I said will really help or not.  But I hope it does.  <shrug>

Brian.
Logged
Pages: [1]   Go Up