![]() |
The Array Operations block does operations on the Numeric Array and Logic Array data types. You can create an array, add elements, read and write individual elements, and get the length of an array. See Data Types for more information on arrays and other data types. |

| Array In | Value to Add | Array Out |
|---|---|---|
| 3 | [3] | |
| [1; 2; 3] | 4 | [1; 2; 3; 4] |
| [2; 1; 1; 6] | 1 | [2; 1; 1; 6; 1] |

| Array In | Index | Value |
|---|---|---|
| [1; 2; 3] | 0 | 1 |
| [1; 2; 3] | 2 | 3 |

| Array In | Index | Value | Array Out |
|---|---|---|---|
| [1; 2; 3] | 0 | 5 | [5; 2; 3] |
| [1; 2; 3] | 2 | 0 | [1; 2; 0] |