Breadcrumbs

append Statement

Appends an object to an array.

Syntax

append anObject to anArray

Semantics

Appends an object to an array. The array does not necessarily have to be created beforehand (see Creating Arrays).

Substitutables

anArray

Can be any variable or object attribute having the type Array

anObject

Can be any object of the array type.

Examples

Input: an array of names

JSON
{"names": ["Irene", "Eliza", "Raymond", "Jane"]}
append "David" to names;

Result:

JSON
{"names": ["Irene", "Eliza", "Raymond", "Jane", "David"]}
📗

Related Pages:

  • Object References
    The Designer uses references for all objects. This page explains the concept and implications of object references.