View Single Post
Old 09-16-2023, 11:44 PM   #4
dunhill
Wizard
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: 1,004
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, 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:	301
Size:	39.7 KB
ID:	203792   Click image for larger version

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

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

Last edited by dunhill; 09-16-2023 at 11:54 PM.
dunhill is online now   Reply With Quote