Skip to content
Lists & Helpers arrayShift

$arrayShift — Removes and returns the first item.

Removes and returns the first item.

Syntax

$arrayShift[array]

Parameters

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

Return Value

  • string.

Usage

$arrayShift[a] → "3"

Example

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