View Single Post
Old 07-09-2026, 05:03 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 2,366
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
Quote:
Originally Posted by cheesegrater View Post
hi there! first time poster, long time lurker.
disclaimer! i'm not a programmer and actually I know nothing about it.

i'm having a problem with the creation of a new column in calibre.

basically this new custom column should search into the tags of the book files and see if a particular tag is present, if it is it should state yes in the column space.

i'm using this template:
program: test(select(field('Tags'),'[tag that I need]'),'Yes','No')
it is something I pasted from a site and I have no idea if it is correct or no

as for the column type I'm using "column built from other columns".

if someone could help me I would be very greatful. thank you in advance

try this:

Code:
program:
    str_in_list($tags, ',', 'your_tag_here', 'Yes', 'No')
That select function applies only to identifiers fields, AFAIK
Comfy.n is offline   Reply With Quote