array.append

This function appends an item to an existing array.

Syntax

array.append(items, item)

Arguments

Argument

Type

Description

items

array of type any

Existing array.

item

any

Item to be appended to the existing array.

Returns

Type

Description

array of type any

Existing array with new item appended to it.

Examples

  • The function array.append($Activity[xxx].array, "new Item") returns [$Activity.array, "new Item"].

  • The function array.append($flow.body.colors, "Red") returns ($flow.body.colors, "Red").