Table of Contents

Search

  1. Preface
  2. The Transformation Language
  3. Constants
  4. Operators
  5. Variables
  6. Dates
  7. Functions

Transformation Language Reference

Transformation Language Reference

ARRAY

ARRAY

Generates an array with elements based on the specified arguments.

Syntax

ARRAY (array_element1 as any [, array_element2] ...)
The following table describes the arguments for this command:
Argument
Required/Optional
Description
array_element1
Required
Any data type. The element that you want to add to the array. You can enter any valid transformation expression.
array_element2
Optional
Same data type as the array_element1.
If you use the ARRAY function in an output expression for an array port, the data type of the function arguments must match the data type of the array elements specified in the type configuration for the array port.

Return Value

Array.
The data type of the arguments determines the data type of the array elements. For example, if you pass string arguments, the function generates an array of string elements.

Examples

The following expression generates an array of string elements.
ARRAY (work_phone, home_phone)
work_phone
home_phone
RETURN VALUE
205-128-6478
722-515-2889
[205-128-6478,722-515-2889]
107-081-0961
718-051-8116
[107-081-0961,718-051-8116]
344-894-6463
861-411-8361
[344-894-6463,861-411-8361]
107-031-0961
NULL
[107-031-0961,NULL]

0 COMMENTS

We’d like to hear from you!