Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Conditional Processing » MergeIntoArray

MergeIntoArray


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

Name Type Description
inConditionalObject1 <T>? First conditional input object
inConditionalObject2 <T>? Second conditional input object
inConditionalObject3 <T>? Third conditional input object
inConditionalObject4 <T>? Fourth conditional input object
inConditionalObject5 <T>? Fifth conditional input object
inConditionalObject6 <T>? Sixth conditional input object
inConditionalObject7 <T>? Seventh conditional input object
inConditionalObject8 <T>? Eighth conditional input object
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

Description of usage of this filter can be found in examples and tutorial: HMI Recorder.
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.