Skip to content
Lists & Helpers oneOf

$oneOf — Tells whether a value equals one of the options

Tells whether a value equals one of the options.

Syntax

$oneOf[value;option1;option2;...]

Parameters

  • value (text, required) — The value.
  • option (text, required, repeatable) — The accepted values.

Return Value

  • true or false.

Usage

$oneOf[b;a;b;c] → "true"

Example

$sendMessage[$oneOf[b;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.