Skip to content

$arraySome

$arraySome will check for given elements in the array and return boolean.

Usage

$arraySome[name;query;queryType?]

Parameters

FieldTypeDescriptionRequired
namestringArray name.true
querystringThe element we will be queering for every element inside the array.true
queryType?stringThe comparison operator.false
  • == — Every item that matches the query.
  • != — Every item that doesn’t match the query.
  • > — All items on the “left” of the found item, excluding itself.
  • < — All items on the “right” of the found item, excluding itself.
  • >= — All items on the “left” of the found item, including itself.
  • <= — All items on the “right” of the found item, including itself.

Example(s)

1
client.command({
2
name: "array-some",
3
code: `
4
$arraySome[array;aoi.js;==]
5
$createArray[array;aoi.js;akarui;documents;bot]
6
`
7
});