INTERACT FORUM

More => Old Versions => Media Center 13 (Development Ended) => Topic started by: mark_h on January 02, 2009, 07:49:31 am

Title: Smartlists: What's the difference between "is any" and "is all"
Post by: mark_h 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
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: zxsix 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.
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: mark_h 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
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: mark_h 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
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: gappie 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
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: mark_h on January 02, 2009, 04:54:53 pm
Been way too long since I did boolean algebra at college.

Mark
Title: Re: Smartlists: What's the difference between "is any" and "is all"
Post by: mark_h on January 03, 2009, 03:18:41 am
NOR solutions to common logic operations here:

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

Mark