Start » Filter Reference » Data Flow » Loop Utils » AccumulateElements

AccumulateElements


Module: FoundationLite

Creates an array from elements appearing in many iterations.

Name Type Range Description
Input value
inElement <T>? Element to be put into an array
Input value
inCondition Bool Flag indicating whether to put the input element into an array or not
Input value
inMaxSize Integer* 0 - Maximum number of last elements that are remembered
Input value
inReset Bool Reset accumulator state
Output value
outArray <T>Array Array of accumulated elements

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Hints

  • Instantiate this filter with a conditional type to create an array with conditional elements.

Examples

Description of usage of this filter can be found in examples and tutorial: Button Presence.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inMaxSize cannot be negative in AccumulateElements.

Complexity Level

This filter is available on Basic Complexity Level.