add script operation

Adds one or more elements to an array. The argument to add can be an expression as well as a list of objects.

Format: ObjectOriented

Type: method

Syntax

void Array::add(elements)
Note: Ensure that you do not use internal names as a function name as this can cause errors.

Parameters

Type Name Description Is required? Is array?
Array operatesOn Operates on an array object. true false
Object objN The element to add false false

Return values

Return value: void

Is array: false