Skip to content
Lists & Helpers listLast

$listLast — Last item of a list, or empty

Last item of a list, or empty.

Syntax

$listLast[list;(separator)]

Parameters

  • list (text, required) — The items.
  • separator (text, optional) — The text between two items. Default: ,. \n means a new line.

Return Value

  • string.

Usage

$listLast[a,b] → "b"

Example

$sendMessage[$listLast[a,b]]

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.