Skip to main content

JoinIfSingleElementOnly

This Script is part of the Filters And Transformers Pack.#

Supported versions

Available on Cortex XSOAR, Cortex XSIAM, and Cortex XPANSE.

Returns the single element in a situation where an array has only 1 element in it, otherwise return the whole array.

Script Data#


NameDescription
Script Typepython
Tagsentirelist, transformer, general

Inputs#


Argument NameDescription
valueThe array to join if it has a single element.

Outputs#


There are no outputs for this script.