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