{{htmlmetatags>metatag-robots=()
metatag-title=(LOWER | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for LOWER)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(LOWER | ugBASIC User Manual)
metatag-og:description=(Manual page for LOWER)
}}
====== ugBASIC User Manual ======
===== LOWER ✓ =====
===== SYNTAX =====
= LOWER( text )
==== PURPOSE ====
The ''LOWER'' function converts all uppercase characters in a string to lowercase.
In other words, it takes a string as input and returns a new string that is
identical to the first, but with all the letters lowercase.
The ''LOWER'' function examines each character in the input string. If the
character is an uppercase letter, it is converted to its lowercase equivalent.
All other characters (numbers, symbols, spaces) remain unchanged.
Before comparing or searching strings, it is often useful to convert all
strings to lowercase or uppercase to avoid case-sensitive problems.
It can be used to make user input less case-sensitive, such as to check
whether a keyword was entered correctly regardless of case. To perform search
and replace, text parsing, and other string manipulation, the ''LOWER''
command is ideal.
==== EXAMPLE ====
x = LOWER( "ugBASIC" )
See also the following example files:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/strings_cases_01.bas|strings_cases_01.bas]]''
==== ABBREVIATION ====
Lw
==== AVAILABLE ON ====
==== ALIAS FOR ====
[[LCASE]]
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON LOWER|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]