Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.str.startswith
On this pageSignatureParametersReturnsExample

Utilities / Reference

alerta.str.startswith

TradingView-compatible spelling: str.startswith, runs without warnings

Checks if string starts with prefix.

alerta.str.startswith(source, prefix) → series bool

Parameters

NameTypeRequiredDefaultDescription
sourceseries stringYes—Source string.
prefixseries stringYes—Prefix.

Returns

series bool

Example

alerta.str.startswith
const isBinance = str.startswith(syminfo.tickerid, "BINANCE")

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.