Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Altered:
Function [other Function type actions]
Item [operators of similar scope]
Formatting [other Formatting operators]
Baseline
String.lowercase()
Returns the referenced string, transforming all uppercase letters to lowercase.
The function can be chained to both string data and to string literals:
$MyString.lowercase()
"My NEW Title".lowercase()
The latter results in "my new title".
The trailing parentheses may be omitted:
$MyString.lowercase
Functionally equivalent to lowercase().
If $MyString is "Hello World":
$MyString = $MyString.lowercase;
$MyString is set to "hello world".
The .lowercase() method may also be used on Lists or Sets. Consider "Ant;BEE;Cow":
$MyList = $MyList.lowercase;
… giving "ant;bee;cow".