Skip to content
Lists & Helpers inRange

$inRange — Tells whether a number is between two bounds (both included)

Tells whether a number is between two bounds (both included).

Syntax

$inRange[number;min;max]

Parameters

  • number (number, required) — The value.
  • min (number, required) — Lower bound.
  • max (number, required) — Upper bound.

Return Value

  • true or false.

Usage

$inRange[5;1;10] → "true"

Example

$sendMessage[$inRange[5;1;10]]

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.