Skip to main content

ZipStrings

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Joining values by index from 2 list according to a given format.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
list1The first list. List must be at same size as list2.
formatA format to join strings by, for example- {1}-{2} will take values in the same index of both list,
where the {1} will be replaced with the value from list1 and {2} will be replaced with the value from list2.
list2The second list. List must be at same size as list1.

Outputs#


PathDescriptionType
zipped_listA list of joined values by the format given.string