Wiki

Options

Case Status
Log In

Wiki

Options

 
Home ยป Core Concepts»Variables»Array Variables
Index
Navigation
Community Wiki

Array Variables

An Array Variable can store a collection of values of a given type. E.g. A Float Array can store float values, an Object Array can store Object values etc.

When you create an array variable you also need to define the type it can contain.

You can think of an Array as a variable with numbered slots:

For example, a string array called Names containing 4 names:

The number of the slot is called the Index of an item. For example, the name at index 2 is Han.

Note, the index of the first item is 0, the second item is index 1, and so on.

This index system lets you access items in an array.

Use Array Actions to work with arrays.

Examples

Use Array Get to get the 3rd name in Names and store it in a String Variable:

Use Array Add to add a name to Names:

Result:

Diagram:

 

 

NOTE: Array variables are new in 1.8.0

See Also:

 

Tags:

Last modified on 1/5/2016 3:09 AM by User.

  • RSS Feed