Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.array.includes
On this pageSignatureParametersReturnsExample

Arrays / Reference

alerta.array.includes

TradingView-compatible spelling: array.includes, runs without warnings

Returns true if array contains value, false otherwise.

alerta.array.includes(id, value) → bool

Parameters

NameTypeRequiredDefaultDescription
idArrayYes—Array handle.
valueanyYes—Value to search.

Returns

bool

Example

alerta.array.includes
myArr = array.new_float(0)hasVal = array.includes(myArr, 5)

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.