Array Size function
Object information | |
---|---|
Owning palette(s) | Array palette |
Type | Function |
Requires | Basic Development Environment |
Icon |
The Array Size function returns the number of elements in each dimension of an array.
Usage
Connect the input terminal to an array of any type. The node automatically adapts to the connected array and returns either a single numeric value for a one-dimensional array, or an array of numeric values for multidimensional arrays.
Best practice
- Use the Add Array Elements function to calculate the sum of all elements in a multidimensional array.
- Use the Index Array function on the return value for multidimensional arrays to get size values for individual dimensions.