View Single Post
Old 01-22-2019, 04:07 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@masp - something like this (not tested)

Code:
program:
 first_non_empty
 ( 
		contains(field('#keep'), "Yes", 'MyYes.png', ''), 
		contains(field('#keep'), "Likely", 'MyLikely.png', ''), 
		contains(field('#keep'), "Maybe", 'MyMaybe.png', ''), 
		contains(field('#keep'), "Unlikely", 'MyUnlikely.png', ''), 
		contains(field('#keep'), "No", 'MyNo.png', '')
 )
You may not need the first_non_empty, and you might want to start with if_empty(field(#keep), "Transparent.png")

Tip - keep this handy ==>> Reference for all built-in template language functions - on paper, device, 2nd monitor

BR
BetterRed is offline   Reply With Quote