View Single Post
Old 08-27-2014, 02:48 AM   #5
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 Snorkledorf View Post
[*]The advanced rule idea sounds interesting, but what I tried (screenshot 2) is also having no effect. There are lots of other options in the dialog so I'm likely setting something wrong there. Especially the "Apply an icon to the column" list — I'm trying to add an icon to the emblems, so I don't know how columns apply here.
Ignore the other options on that screen. They will go away in the next release.

Do you already have icon files named 1.png, 2.png, etc? If you do not then the advanced rule I supplied will do nothing.

And in any event the template should be:
Code:
program:
	s = field('series_index');
	test(field('series'),
		first_non_empty(
			cmp(s, 1.01, '1.png', '', ''),
			cmp(s, 2.01, '2.png', '', ''),
			cmp(s, 3.01, '3.png', '', ''),
			cmp(s, 4.01, '4.png', '', ''),
			cmp(s, 5.01, '5.png', '', ''),
			cmp(s, 6.01, '6.png', '', ''),
			cmp(s, 7.01, '7.png', '', ''),
			cmp(s, 8.01, '8.png', '', ''),
			cmp(s, 9.01, '9.png', '', ''),
			cmp(s, 9.99, '', '', 'bigger.png')
	), '')
I forgot to use no emblem if there is no series.
chaley is offline   Reply With Quote