LOWER$()

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Returns a copy of your string with all letters converted to lower case.
See also UPPER$().

Syntax

  1. lower$(string)

Hints

LOWER$() is useful when comparing items, or accepting input from users. Converting an item to lower case before testing assures all items are included in the test regardless of case used in spelling or as input by user.
Anytime you need to maintain a list or file in consistent case, LOWER$() is your friend. Similarly, UPPER$() is used to convert to all upper case.

Example

' Check user's response
    input "Continue - 'yes or no'? "; response$
    response$ = lower$(response$)
    if response$ = "yes" then
        print "Continuing..."
    else
        print "Ending now!"
    end if
    end

Useful Procedures

' Place a useful function or sub using this keyword here