Quote:
Originally Posted by thvdriet
Hello,
I have a column icon displayed in the <authors> column (some by name and some in general). This is no problem. But now I want to display a separate icon if the author column consist of more then one author. They are separated by the "&", but I cannot select on this.
Does anybody have an idea?
Thx for any help, Thom 
|
You need to use an advanced rule for this. Advanced rules use
General Program Mode templates, which can do much more than the set of conditions built into the rules.
The following GPM template gets the number of authors. If that number is 1 it returns the icon file name for an up-pointing green triangle. If it is more than 1 it returns the icon file name for a down-pointing green triangle.
Code:
program:
cmp(count(field('authors'), '&'), 1, '', 'arrow-up.png', 'arrow-down.png')
For completeness I am attaching a screen shot of the advanced rule editor.