Skip to content
Lists & Helpers arrayEvery

$arrayEvery — Tells whether a condition is true for every item.

Tells whether a condition is true for every item.

Syntax

$arrayEvery[array;variable;condition]

Parameters

  • array (text, required) — Name of the array.
  • variable (text, required) — Local variable that holds the item.
  • condition (code, required) — Condition.

Return Value

  • string.

Usage

$arrayEvery[a;x;$env[x]>0] → "true"

Example

$sendMessage[$arrayEvery[a;x;$env[x]>0]]

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.