LOWER$(): Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "Building Blocks Categories" to "Building Blocks") |
m (1 revision imported) |
(No difference)
| |
Latest revision as of 03:04, 11 October 2023
Description
- Returns a copy of your string with all letters converted to lower case.
- See also UPPER$().
Syntax
- 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