View Single Post
Old 01-09-2015, 03:57 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,471
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Another way to do it that checks for exact matches in tags instead of containment:
Code:
program:
	t = field('tags');
	v = 'Philosophy, Philosophie, Philosophy & Essays, History, Geschichte';
	l = list_intersection(t, v, ',');
	test(l, 'Philosophy & Essays', '')
By exact match I mean that the tag 'History' should match but the tag 'Military History' should not.
chaley is offline   Reply With Quote