View Single Post
Old 03-15-2021, 07:23 PM   #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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
#kobocoll is taglike so I'll try that other one too
If #kobocoll is tags-like then '==' won't do anything good if there is more than one value in the list.

The 'in' comparison operator will work on tags-like columns as long as the searched value cannot appear more than once. For example, consider the expression
Code:
if 'history' in tags then
It will match 'history', 'military history', 'ancient history' etc.

The 'in' operator is faster than list_contains(), so it is worth using as long as there aren't multiple super-strings of the search expression.
chaley is offline   Reply With Quote