View Single Post
Old 03-20-2021, 07:11 PM   #6
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,471
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I will try that.

Another thing I thought of: perhaps I could change my existing rule to a non-composed rule (which will stop other rules after it) and make a second rule saying "if field is populated, put unknown.png."
No, there is no rule condition that can query if any previous rule has succeeded.

Regarding your original question, a small change to @capink's suggestion might be easier for you to use. Something like
Code:
    if 'Some Movie|Some Other Movie' in f then icons = list_union(icons, 'film.png', sep) fi;
    if 'One Entry of a Game Series' in f then icons = list_union(icons, 'iconforseries.png', sep) fi;
# and on and on
    ifempty(icons, 'unknown.png')
chaley is offline   Reply With Quote