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) → boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | map | Yes | — | Map handle. |
key | any | Yes | — | Key to check. |
Returns
boolExample
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.