Start » Filter Reference » Data Flow » Conditional Processing » MergeIntoArray

MergeIntoArray


Module: FoundationLite

Creates an array from all the non-Nil input elements.

Name Type Description
Input value
inConditionalObject1 <T>? First conditional input object
Input value
inConditionalObject2 <T>? Second conditional input object
Input value
inConditionalObject3 <T>? Third conditional input object
Input value
inConditionalObject4 <T>? Fourth conditional input object
Input value
inConditionalObject5 <T>? Fifth conditional input object
Input value
inConditionalObject6 <T>? Sixth conditional input object
Input value
inConditionalObject7 <T>? Seventh conditional input object
Input value
inConditionalObject8 <T>? Eighth conditional input object
Output value
outArray <T>Array Array of existing input objects

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

Description

The MergeIntoArray filter is a tool of the Conditional Execution mechanism. The operation collects a number of conditional objects and combines them into an array of proper objects, omitting the empty input values.

Examples

inConditionalObject1 = Nil
inConditionalObject2 = Nil
inConditionalObject3 = "Mike"
inConditionalObject4 = "Alice"
inConditionalObject5 = Nil
inConditionalObject6 = "Joanne"
inConditionalObject7 = Nil
inConditionalObject8 = Nil
outArray = {"Mike", "Alice", "Joanne"}
inConditionalObject1 = Nil
inConditionalObject2 = Nil
inConditionalObject3 = Nil
inConditionalObject4 = Nil
inConditionalObject5 = Nil
inConditionalObject6 = Nil
inConditionalObject7 = Nil
inConditionalObject8 = Nil
outArray = {}

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

  • MergeBranches – Chooses the first non-Nil object, or reports an error if there is no such object.