rainerc / cr-data-manager

Automatically exported from code.google.com/p/cr-data-manager
1 stars 0 forks source link

new modifier: ListItemIs #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
useful new modifier for multi-value fields

E.g.:
book1 tags: tag1, tag2, otherTag
book2 tags: tag1, tag2, anotherTag

<<Tags.Contains:other>>
returns book1 and book2

<<Tags.ListContains:anotherTag>>
returns only book2

Original issue reported on code.google.com by rainer.c...@googlemail.com on 31 Mar 2013 at 4:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
sorry misread your explanation so i was a bit confused

Original comment by NiceziaVincent on 19 Apr 2013 at 11:47

GoogleCodeExporter commented 9 years ago
name for this new modifier might be misleading. Something like "InList" might 
be easier to understand.

Original comment by rainer.c...@googlemail.com on 19 Apr 2013 at 4:56

GoogleCodeExporter commented 9 years ago
maybe better:

ListItemIs
ListItemIsAnyOf
ListItemIsAllOf

etc.

Original comment by rainer.c...@googlemail.com on 17 Jun 2013 at 6:39

GoogleCodeExporter commented 9 years ago
Tags: tag1,tag2,tag3,tag4

Tags.ListItemIs:tag1               -> True
Tags.ListItemIsAnyOf:tag1||tag5    -> True
Tags.ListItemIsAllOf:tag1||tag2    -> True
Tags.ListItemIsAllOf:tag1||tag5    -> False

and we can also have:
NotListItemIs, NotListemIsAnyOf etc.

Original comment by rainer.c...@googlemail.com on 17 Jun 2013 at 6:47

GoogleCodeExporter commented 9 years ago
T3K writes:

I actually Like ListContains as a better alternative (your initial idea, the 
wording is clearer and to the point. I just read it wrong on the google code 
sight the first time) Also ListContainsAnyOf, ListContainsAllOf, and their Not 
Equivalents

Original comment by rainer.c...@googlemail.com on 17 Jun 2013 at 8:03