MyChat Scripts Engine: LowerCase, convert a string to lowercase
"For developers", "Server scripts", "Functions description", "Strings", "LowerCase"
Converting all string symbols to lowercase.
Syntax
function LowerCase(sSt: string): string;
Parameters and return values
Parameters |
Type |
Value |
sSt |
string |
source string. |
Function result
Returns a string with the same text, but with all letters converted to lowercase.
Example
const
sSt = 'We ALL lIvE iN A YELLOW submarine, YELLoW SUBmArINE, yeLLOW submaRiNe.';
begin
mLogScript('Original string: "' + sSt + '"', '');
mLogScript(LowerCase(sSt), '');
end.
Script work result
[14:17:42] (Log "LowerCase"): Original string: "We ALL lIvE iN A YELLOW submarine, YELLoW SUBmArINE, yeLLOW submaRiNe."
[14:17:42] (Log "LowerCase"): we all live in a yellow submarine, yellow submarine, yellow submarine.