Skip to main content

SetIfEmpty

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

Checks an object for an empty value and returns a pre-set default value.

Script Data#


NameDescription
Script Typejavascript
Tagstransformer, general, entirelist
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
valueThe object value to check, if empty.
defaultValueThe new value to return if the original value was empty.
applyIfEmptyIf set to true, empty strings, arrays and dictionaries and the strings "None" and "Null" are considered empty entities and the default value is returned.

Outputs#


There are no outputs for this script.