Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
LOWER$ Function
LOWER$(string-expression)

Converts a string expression to lower case, using standard ASCII case folding rules.


Examples

PRINT LOWER$("HELLO")

Produces "hello".

PRINT LOWER$("RetroRocket 123!")

Produces "retrorocket 123!".

REM Normalise case for comparison
a$ = "Yes"
b$ = "YES"
IF LOWER$(a$) = LOWER$(b$) THEN
PRINT "They match!"
ENDIF

Notes

  • Only affects ASCII letters A–Z (65–90), converting them to a–z (97–122).
  • Non-alphabetic characters are unchanged.
  • Useful for case-insensitive comparisons, normalisation, and text processing.

See also: UPPER$ · LEN · MID$