Skip to content

$arrayAt

$arrayAt will choose the index (position) of the array element to be returned. Returns nothing if the given index can not be found.

Usage

$arrayAt[name;index]

Parameters

FieldTypeDescriptionRequired
namestringName of the array.true
indexstringThe position of the element.true

Example(s)

  • This will return Aoi.dashboard:
1
client.command({
2
name: "array-at",
3
code: `
4
$arrayAt[Aoi;3]
5
6
$createArray[Aoi;Aoi.music;Aoi.panel;Aoi.dashboard;Aoi]
7
`
8
// Returns "Aoi.dashboard"
9
});