Quote:
Originally Posted by Tanjamuse
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.