world.ArraySize

MUSHclient script function (Method) — introduced in version 3.46

Returns the number of elements in a specified array

Prototype

long ArraySize(BSTR Name);

Data type meanings

Description

This returns the number of elements in the specified array.

VBscript example

Note "items in spells array = " & ArraySize ("spells")

Lua example

Note ("items in spells array = " .. ArraySize ("spells"))

Return value

The number of elements in the specified array, which may be zero.

Related topic

Arrays

See also

FunctionDescription
ArrayCountReturns the number of arrays
ArrayExportExports values from an array into a single string
ArrayExportKeysExports keys from an array into a single string
ArrayListKeysGets the list of all the keys in an array