Skip to content
Lists & Helpers arrayPop

$arrayPop — Removes and returns the last item.

Removes and returns the last item.

Syntax

$arrayPop[array]

Parameters

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

Return Value

  • string.

Usage

$arrayPop[a] → "2"

Example

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