Skip to content
Lists & Helpers arrayCreate

$arrayCreate — Creates an array (up to 100000 items), empty or filled with blanks.

Creates an array (up to 100000 items), empty or filled with blanks.

Syntax

$arrayCreate[name;(length)]

Parameters

  • name (text, required) — Name of the array.
  • length (number, optional) — Number of blank items.

Return Value

  • string.

Usage

$arrayCreate[a;3]$arrayLength[a] → "3"

Example

$sendMessage[$arrayCreate[a;3]$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.