Wait for the next release, then:
- Convert the rules to advanced rules. You might want to duplicate them first. This will give you a rule that uses test(and...
- Create a new advanced rule containing a "first_non_empty() function.
- Copy the "test...and" lines and paste them as items in the first_non_empty in the order you want.
For example, given this advanced rule:
Code:
program:
test(and(
strcmp(field('#enum2'), "no", '', '1', ''),
strcmp(field('#enum3'), "no", '', '1', '')
), 'cry-icon.png', '');
the advanced rule with first_non_empty would be
Code:
program:
first_non_empty(
test(and(
strcmp(field('#enum2'), "no", '', '1', ''),
strcmp(field('#enum3'), "no", '', '1', '')
), 'cry-icon.png', '')
)
If I (for example) add another branch to first_non_empty then it becomes
Code:
program:
first_non_empty(
test(and(
strcmp(field('#enum2'), "no", '', '1', ''),
strcmp(field('#enum3'), "no", '', '1', '')
), 'cry-icon.png', ''),
test(and(
strcmp(field('#bar'), "no", '', '1', ''),
strcmp(field('#flapjack'), "no", '', '1', '')
), 'foo.png', '')
)