ListSummer
Computes the sum of all the elements of a list.
Input Ports
This transformer accepts features with a list attribute.
Output Ports
Features with the summed list attribute are output through this port.
Parameters
The list attribute whose elements are to be summed.
Each element must be a valid integer or floating point number. List elements that are non-numeric will be considered to have a value of 0.
The attribute used to store the sum of the list attribute elements. The default value is _sum.
Example
Suppose this feature enters this transformer:
somelist{0}.val = 12
somelist{1}.val = 0.5
somelist{2}.val = 8
somelist{3}.val = 'a'
somelist{4}.val = 1
Then the value assigned to the resulting sum attribute would be 21.5.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Community
Search for samples and information about this transformer on the FME Community.