lowercase
Converts a string to lowercase.
Syntax
lowercase(s)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| s | string | Yes | The string to convert to lowercase. |
Returns
Type: string
The input string with all characters converted to lowercase. Returns an empty string if the input is not a string.
Examples
Normalize an email field:
lowercase([email])
If email is "Jane.Doe@EXAMPLE.COM", the result is "jane.doe@example.com".
Case-insensitive comparison by lowering both sides:
lowercase([status])
If status is "ACTIVE", the result is "active".
Notes
- If the input is not a string (e.g., a number or
None), the function returns an empty string""rather than raising an error. - This function applies the standard Unicode lowercase transformation, so it works correctly with accented and international characters.
Comments
0 comments
Please sign in to leave a comment.