Quote:
Originally Posted by eschwartz
Can you show multiple icons? (My inexperience shows.  ) If so, you will want to process each list_item() in turn and add it.
|
If a rule (a template) returns multiple values (a comma-separated list) then each item is assumed to be a PNG file name. They are displayed in the order they occur.
Quote:
I don't believe there is a builtin way to iterate over anything in GPM, though a custom function could do it.
|
No, there isn't any iteration in the template language.
As you say, you can iterate in a custom template function (CF). My guess is that in this case a CF would have between 1 and 2 orders of magnitude better performance than a GPM template because the CF would evaluate only what it needs, while a GPM template evaluates all arguments then applies the logic.