$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
Field | Type | Description | Required |
---|---|---|---|
name | string | Name of the array. | true |
index | string | The position of the element. | true |
Example(s)
- This will return
Aoi.dashboard
:
1client.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});