$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.

 

Related Topics