613-518-1166 info@zimdatabases.com

ZIM Language Reference

$tolower

< All Topics

$tolower

Converts alphabetic characters to lower case.

Syntax

$tolower(source)

Parameters

source

any value, or an expression that yields any value

Return Value

Character string.

Comments

Returns a character string in which all letters are lower case. If source is not of a character data type, it is converted to a character data type before the function is applied.

Example

$tolower(“the QUICK BROWN fox is 30 years oLD”)

Evaluates to “the quick brown fox is 30 years old”.

output “Do you want output to go to the printer? (y/n)”
input <1>
if $tolower(“#<1>“) = “y”   % makes user response case insensitive
 set output printer
endif

Ensures that the user response is case-insensitive.

 

See Also

$toupper

About Character Literals

About Functional Expressions

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents