View Single Post
Old 07-23-2022, 07:14 AM   #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,457
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
Sorry for necroing this old thread.

If I have two conditions with true/false to show two icons simultaneously I will need 4 rules with composed icon sets?

00
xx
0x
x0
Yes, if you want different icons for true and false.

I think it would be easier to use a single advanced rule that returns a compound icon. Something like this, but with the column names changed and the logic you want.
Code:
program:
	icon1 = if $$#myint != 'none' then 'cry-icon.png' else 'dictionary.png' fi;
	icon2 = if $$#mybool != 'true' then 'arrow-down.png' else 'arrow-up.png' fi;
	icon1 & ':' & icon2
EDIT: added image of results
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	168
Size:	6.7 KB
ID:	195255  

Last edited by chaley; 07-23-2022 at 07:27 AM. Reason: Added image
chaley is offline   Reply With Quote