Lists & Helpers
listHas
$listHas — Tells whether a list contains an item (exact match)
Tells whether a list contains an item (exact match).
Syntax
$listHas[list;item;(separator)]
Parameters
- list (text, required) — The items.
- item (text, required) — The item to look for.
- separator (text, optional) — The text between two items. Default:
,.\nmeans a new line.
Return Value
trueorfalse.
Usage
$listHas[1,2,3;2] → "true"
$listHas[1,2,3;4] → "false"
Example
$sendMessage[$listHas[1,2,3;2]]
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.