Skip to content
Lists & Helpers arrayClear

$arrayClear — Empties an array.

Empties an array.

Syntax

$arrayClear[array]

Parameters

  • array (text, required) — Name of the array.

Return Value

  • string.

Usage

$arrayClear[a]

Example

$arrayLoad[a;,;3,1,2]
$arrayClear[a]
$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.