ARRAYSIZE
ARRAYSIZE(<array[]>,[#outvar])
Type: Action
Category: Variables
Permission: N/A
Since Minecraft Version: v1.4.6
Since Version: v0.9.7
Minor: 9
API: N/A
Patch: 7
Description
Stores the size of the specified <array[]> in [#outvar].
Returns the size of the array.
Example
&array[] = "Hello"
&array[] = "World"
ARRAYSIZE(&array[],#variant1)
&array[] = "Bigger"
#variant2 = ARRAYSIZE(&array[])
// Output 2 and 3 respectively
LOG(%#variant1%)
LOG(%#variant2%)
Changelog
- Added em v0.9.7: