View Single Post
Old 10-23-2024, 12:12 PM   #155
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,480
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Does inlist_field only work for strings? e.g.:

Code:
program:

	readgoal = strcat('readinggoal:', format_date(today(), 'yyyy'));

	if
		readgoal inlist_field '#admintags'
Yes, because there isn't a calibre multiple-value field that doesn't contain strings. Note that in your example, the string generated by strcat() must exactly match some item in #admintags', including blanks. That said, if it works with inlist then it will work with inlist_field.

EDIT 2: the changes to the syntax highlighter are now in calibre source.

Last edited by chaley; 10-23-2024 at 05:46 PM. Reason: Removed edit 1 -- identifiers now works in the same way as inlist
chaley is offline   Reply With Quote