Skip to main content
Skip table of contents

compact() Operation

Runtime 2020.13

Syntax
NONE
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
NONE
set compactArray = anArray.compact();
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.