Skip to content
Lists & Helpers arrayLoad

$arrayLoad — Loads an array from text split by a separator.

Loads an array from text split by a separator.

Syntax

$arrayLoad[name;(separator);(values)]

Parameters

  • name (text, required) — Name of the array.
  • separator (text, optional) — Separator.
  • values (text, optional) — The text to split.

Return Value

  • string.

Usage

$arrayLoad[a;,;1,2,3] → ["1","2","3"]

Example

$arrayLoad[a;,;1,2,3]
$sendMessage[$arrayLength[a]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.