Lipi Reference Lipi

Functions

str.lower()

Returns a new string with all letters converted to lowercase.

Syntax · 1 of 4

                str.lower(const string source) → const string
              

Arguments

source required const string String to be converted.

Return Type

const string

Syntax · 2 of 4

                str.lower(input string source) → input string
              

Arguments

source required input string String to be converted.

Return Type

input string

Syntax · 3 of 4

                str.lower(simple string source) → simple string
              

Arguments

source required simple string String to be converted.

Return Type

simple string

Syntax · 4 of 4

                str.lower(series string source) → series string
              

Arguments

source required series string String to be converted.

Return Type

series string

Example


          indicator("Lowercase Example", overlay=false)
tickerSymbol = syminfo.ticker
lowercaseTicker = str.lower(tickerSymbol)
isLowercase = tickerSymbol != lowercaseTicker
plot(isLowercase ? 1 : 0, title="Converted to Lowercase", color=color.blue)