Last modified: 2012-03-05 19:58:53 UTC
The "sum" result format do currently not have a default parameter. A default parameter would be useful for making it print "0" for an empty list, rather than nothing, as that can sometimes be the true meaning of an empty list.
Hi Leonard - wouldn't "0", or any other number, be misleading in that case? Can you give an example of when this would be helpful? I just want to understand the request better.
r113065 Could be misleading in certain cases, so I made this possible to do, bit left the default behavior to what it was.
Thanks for responding to this! Yaron: Yes it would probably be misleading in many (most?) cases but not all, sometimes no value really means "0". For instance, I have a setup where trading figures are imported with Extension:GetData into SIO's, and I use the sum format to set another property, "total amount imported" (I'll skip the details, I guess you get the idea). Sometimes two countries in the matrix do not have any reported trade between them, and then there will be no corresponding SIO. In that case I would want the total amount property to be 0, rather than not set at all. And Jereon, thank you for the quick fix!