Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.map.contains
On this pageSignatureParametersReturnsExample

Maps / Reference

alerta.map.contains

TradingView-compatible spelling: map.contains, runs without warnings

Returns true if `key` is present in the map.

alerta.map.contains(id, key) → bool

Parameters

NameTypeRequiredDefaultDescription
idmapYes—Map handle.
keyanyYes—Key to check.

Returns

bool

Example

alerta.map.contains
levels = map.new()map.put(levels, "support", low)if map.contains(levels, "support")    label.new(bar_index, high, "has support")

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.