Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Array Basics » SkipEmptyArray

SkipEmptyArray


If the input array is not empty, then it is copied to the output; otherwise Nil is returned.

Name Type Description
inArray <T>Array Array that may be empty or not
outNotEmptyArray <T>Array? Not empty array or Nil
outIsNotEmpty Bool

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

Applications

Secures against domain errors caused by empty arrays, e.g. just before the GetMaximumElement filter is to be invoked.

Remarks

This filter can be replaced with the following formula:

Complexity Level

This filter is available on Basic Complexity Level.