Example Array Code

In the following two examples, the script variables used in the expressions are listed in the top right of each example.

A Simple Expression Using an Array and an Array Script Variable

The expression

new int[] { 23, 4, 7,}

is valid in Java but not in the expression language. Instead write:

new int[] { 23, 4, 7}
A Complex Expression Using an Array and an Array Script Variable
The following sections describe the options on the Array tool tab:
  • Array Variables

  • Index Variables

  • Array Methods

  • Array tab Syntax Buttons