str.startswith() - Pine Script Function
str.startswith()
Section titled “str.startswith()”Overview
Section titled “Overview”Returns true if the source string starts with the substring specified in str, false otherwise.
Syntax
Section titled “Syntax”str.startswith(source, str) → const boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | const string | Source string. |
Returns
Section titled “Returns”True if the source string starts with the substring specified in str, false otherwise.