toLowerCase() | Zoho QEngine Help

toLowerCase()

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

  • Text

Syntax

  1. <variable> = <string>.toLowerCase();

(OR)

  1. <variable> = toLowerCase( <string >);

(OR)

  1. <variable> = <string>.lower();

(OR)

  1. <variable> = lower( <string> );
ParameterDescriptionData type
<variable>Variable which will contain the returned string.TEXT
<string>All letters in this string will be converted to lower case.TEXT

Examples

  1. mainString="Create online database applications";
  2. newText = lower(mainString);       // returns "create online database applications"