Skip to content
Lists & Helpers listFirst

$listFirst — First item of a list, or empty

First item of a list, or empty.

Syntax

$listFirst[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

$listFirst[a,b] → "a"

Example

$sendMessage[$listFirst[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.