View Single Post
Old 10-13-2016, 03:18 PM   #16
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Tanjamuse View Post
If I wanted to use this rules on all the ships except those mentioned, what would the rule be then?
Read the documentation of the test function. It lets you give a response for either or both of non-empty or empty.

For example:
Code:
program:
	test(
		and(
			contains(field('#readinglist'), 'interesting', 'y', ''),
			or(
				contains(field('#ships'), "Angela Montenegro/Jack Hodgins", 'y', ''),
				contains(field('#ships'), "Temperance Brennan/Seeley Booth", 'y', '')
			)
		),
		'',
		'ships (crime).png'
)
shows a ship icon when none of the conditions are true. This
Code:
program:
	test(
		and(
			contains(field('#readinglist'), 'interesting', 'y', ''),
			or(
				contains(field('#ships'), "Angela Montenegro/Jack Hodgins", 'y', ''),
				contains(field('#ships'), "Temperance Brennan/Seeley Booth", 'y', '')
			)
		),
		'ships (crime).png',
		'sinking ships (crime).png'
)
shows a ship icon if the conditions match and a sinking ship icon if they don't.
chaley is offline   Reply With Quote