In a nutshell
The toLowerCase() function takes a string as an argument and returns the same string with all letters converted to lower case. The return type is Text. It is useful in test scripts where text values need to be normalized to lower case before comparison or assertion.
Overview
The toLowerCase() function takes a string as an argument. It returns the string with all letters in lower case.
Return Type
Syntax
- <variable> = <string>.toLowerCase();
(OR)
- <variable> = toLowerCase( <string >);
(OR)
- <variable> = <string>.lower();
(OR)
- <variable> = lower( <string> );
| Parameter | Description | Data type |
|---|
| <variable> | Variable which will contain the returned string. | TEXT |
| <string> | All letters in this string will be converted to lower case. | TEXT |
Examples
- mainString="Create online database applications";
- newText = lower(mainString); // returns "create online database applications"