Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-08-2023, 06:55 PM   #1
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Advanced rule for column of icons.

How could an advanced rule change the icon according to the evaluation.
Example:
If the valuation is not established, put icono1.png
If the value is less than 4, put icono2.png
And if the value is greater than 3, put icono3.png
dunhill is offline   Reply With Quote
Old 07-09-2023, 02:01 PM   #2
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
I'm trying something like this:
Code:
program:
test(and(
          cmp(field('rating'), 1, '1', '', ''), 'unrated -1.png', '');
          cmp(field('rating'), 3, '', '', '1'), 'like -1.png', '');
          cmp(field('rating'), 4, '1', '', ''), 'dislike - 1.png', '');
dunhill is offline   Reply With Quote
Advert
Old 07-10-2023, 06:37 AM   #3
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I didn't try to figure out what the template in post 2 might do. I am sure it doesn't do what you want.

Using the examples in post 1, try this:
Code:
program:
	r = $rating;
	switch_if(
		r == '', 'icono1.png',
		r <=# 3, 'icono2.png',
		'icono3.png')
chaley is offline   Reply With Quote
Old 07-10-2023, 08:55 PM   #4
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by chaley View Post
I didn't try to figure out what the template in post 2 might do. I am sure it doesn't do what you want.

Using the examples in post 1, try this:
Code:
program:
	r = $rating;
	switch_if(
		r == '', 'icono1.png',
		r <=# 3, 'icono2.png',
		'icono3.png')


Great, make the request, thank you very much
dunhill is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Icon Rule not working Tanjamuse Library Management 0 03-19-2020 01:18 PM
Reusing a custom column saved other columns as advanced icon-rule Tanjamuse Library Management 1 03-06-2020 06:08 AM
added custom column icons render larger than original icons masp Library Management 12 01-22-2019 04:07 PM
Need help w/Advanced Column Icon Rule BookJunkieLI Library Management 4 07-11-2018 02:00 PM
Advanced Icon Rule with Exception Tanjamuse Library Management 21 05-01-2018 01:26 AM


All times are GMT -4. The time now is 02:29 AM.


MobileRead.com is a privately owned, operated and funded community.