Runtime 2020.13

Syntax
anArray.compact()
Semantics

Removes NULL elements of the array anArray. This is a convenience operation that can be used instead of select from anArray where element.exists();.

SubstitutablesanArrayCan be any variable or object attribute having the type Array.
Examples
set compactArray = anArray.compact();