View Single Post
Old 04-15-2023, 01:44 PM   #25
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
hmmm...

It neither works for a single symbol in #series (here strangely the series name for all series moves nevertheless a bit to the right)
Code:
program:
	if list_count($#series_authors, '&') > 1 then
		'series_authors.png'
	fi
nor in my #symbol column
Code:
program:
	def add_icon(icon, val):
		if icon == '' then icon = val else icon = icon & ':' & val fi;
		return icon
	fed;

	icon = '';
	if $languages == 'eng' then icon = add_icon(icon, 'uk.png') fi;
	icon = add_icon(
		icon, 
		switch(
			$$#toread,
			'true', 'toread.png',
			'false', 'false.png',
			''));
	if $$#formats == 'paper' then icon = add_icon(icon, 'paper.png') fi;
	if $$#read == 'true' then icon = add_icon(icon, 'ok.png') fi;
	if $$#source == 'geniallokal' then icon = add_icon(icon, 'geniallokal.png') fi;
	if $$#source == 'wbg' then icon = add_icon(icon, 'wbg.png') fi;
	if $$#readinglist != '' then icon = add_icon(icon, 'reading_list.png') fi;
	if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi;
	if list_count($#series_authors, '&') > 1 then icon = add_icon(icon, 'series_authors.png') fi;
	return icon
Wiggo is offline   Reply With Quote