Lists & Helpers
listNatural
$listNatural — Writes a list as a sentence: a, b and c
Writes a list as a sentence: `a, b and c`.
Syntax
$listNatural[list;(separator);(lastSeparator);(outputSeparator)]
Parameters
- list (text, required) — The items.
- separator (text, optional) — The text between two items. Default:
,.\nmeans a new line. - lastSeparator (text, optional) — Put before the last item. Default: ` and `.
- outputSeparator (text, optional) — Put between the other items. Default:
,.
Return Value
- string.
Usage
$listNatural[a,b,c] → "a, b and c"
$listNatural[a,b,c;,; et ] → "a, b et c"
Example
$sendMessage[$listNatural[a,b,c]]
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.