View Single Post
Old 10-22-2020, 08:57 AM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,197
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Maybe try using an advanced rule with this template

Code:
program:
    fmts = field('formats');
    common = 'epub, pdf, azw3, mobi, cbz, paperbook';
    diff = list_difference(fmts, common, ', ');
    cnt = count(diff, ',');
    test(cmp(cnt,0,'','','gt'),'question-mark.png','')
replace 'question-mark.png' with the name of your icon. Also note that the multiple assignments here make the template slower, but more readable.
capink is offline   Reply With Quote