Lists & Helpers
arraySome
$arraySome — Tells whether a condition is true for at least one item.
Tells whether a condition is true for at least one item.
Syntax
$arraySome[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
$arraySome[a;x;$env[x]>2] → "true"
Example
$sendMessage[$arraySome[a;x;$env[x]>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.