View Single Post
Old 03-20-2021, 06:14 PM   #4
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,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Code:
program:
    f = field('#taglike');
    icons = '';
    sep = ':';
    icon_expression = 'film.png=^Some Movie|Some Other Movie$,iconforseries.png=One Entry of a Game Series';
    for item in icon_expression:
        icon = re(item, '(.+)=(.+)', '\1');
        expression = re(item, '(.+)=(.+)', '\2');
        val = contains(f, expression, icon, '');
        if val then
            icons = list_union(icons, val, sep)
        fi
    rof;
    ifempty(icons, 'unknown.png')
capink is offline   Reply With Quote