Skip to content
Lists & Helpers containsAll

$containsAll — Tells whether the text contains every word of a list

Tells whether the text contains every word of a list.

Syntax

$containsAll[text;wordList;(separator);(caseSensitive)]

Parameters

  • text (text, required) — The text to check.
  • wordList (text, required) — The words to look for.
  • separator (text, optional) — The text between two items. Default: ,. \n means a new line.
  • caseSensitive (yes or no, optional) — Default: no.

Return Value

  • true or false (false when the word list is empty).

Usage

$containsAll[Hello World;hello,world] → "true"

Example

$sendMessage[$containsAll[Hello World;hello,world]]

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.