View Single Post
Old 09-16-2023, 10:44 PM   #4
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 733
Karma: 228142
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
I have a personal column for Audio formats as seen in image 1
With this in Template
program:cmp(count(template('[[format]]'), ','), 1, 'no', in_list(template('[[format]]'), ',', 'Ogg', 'Yes', 'no', ',', 'M3u', 'Yes', 'no', ',', 'M4a', 'Yes', 'no', ',', 'Mp3', 'Yes', 'no'), 'no')

And for paper book formats a column as seen in image 2
With this code in Template
program:
my_formats = 'pdf,mobi,azw3,azw,cbr,cbz,m4b,epub,fb2';
if list_intersection(lowercase($formats), my_formats, ',') then
'no'
else
'Yes'
fi
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	52
Size:	39.7 KB
ID:	203792   Click image for larger version

Name:	2.png
Views:	46
Size:	32.5 KB
ID:	203793   Click image for larger version

Name:	3.png
Views:	47
Size:	36.9 KB
ID:	203794  

Last edited by dunhill; 09-16-2023 at 10:54 PM.
dunhill is offline   Reply With Quote