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) → boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | Array | Yes | — | Array handle. |
value | any | Yes | — | Value to search. |
Returns
boolExample
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.