INTERACT FORUM

Please login or register.

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

Author Topic: Smartlists: What's the difference between "is any" and "is all"  (Read 1950 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Smartlists: What's the difference between "is any" and "is all"
« on: January 02, 2009, 07:49:31 am »

For example, I get different results depending of which of these I use when including other smartlists into a parent smartlist.  "is any" seems to give intuitive results but I cannot

So what exactly is the difference between "is any" and "is all"??

Semantically they appear to be the same?

Also, as there is a "is not any", why isn't there an "is not all"??

Cheers,

Mark
Logged

zxsix

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1753
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #1 on: January 02, 2009, 08:13:47 am »

It looks to me like the difference between AND and OR.

Take a field that could have multiple values, such as the People field.
Take a photo tagged with Bill, Bob, Chad, Kevin, Mary.

If the smartlist rule was 'is any' Bill, Bob, Kevin  then the photo would be included since at least one of those was a match.
If the smartlist rule was 'is all'   Bill, Bob, George  then the photo would not be included since George wasn't in the tag.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #2 on: January 02, 2009, 11:45:03 am »

OK, following your lead, doing some tests it looks like, for clarity:

IS ANY = OR

IS ALL = AND

Which is what you said.

Which implies IS NOT ANY = NOR

Which means we really need IS NOT ALL = NAND because any logic can be created with NAND conditions, but not sure that's true otherwise?

Mark
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #3 on: January 02, 2009, 04:32:58 pm »

Just did some research and it seems that NOR is sufficient to describe any logical operation as well, so actually no need for NAND in MC.  Cool!  Now I just have to get my brain around the problem I'm trying to solve :D

Mark
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #4 on: January 02, 2009, 04:44:55 pm »

is any is any x or y. is all is all x and y. is not any is any x nor y. is not any is not all x nand y.
 ?


 ;)
gab
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #5 on: January 02, 2009, 04:54:53 pm »

Been way too long since I did boolean algebra at college.

Mark
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Smartlists: What's the difference between "is any" and "is all"
« Reply #6 on: January 03, 2009, 03:18:41 am »

NOR solutions to common logic operations here:

http://en.wikipedia.org/wiki/NOR_logic

Mark
Logged
Pages: [1]   Go Up