docs-v2/content/flux/v0.x/stdlib/strings/tolower.md

952 B

title description aliases menu weight related introduced
strings.toLower() function The strings.toLower() function converts a string to lowercase.
/influxdb/v2.0/reference/flux/functions/strings/tolower/
/influxdb/v2.0/reference/flux/stdlib/strings/tolower/
/influxdb/cloud/reference/flux/stdlib/strings/tolower/
flux_0_x_ref
name parent
strings.toLower strings
301
/flux/v0.x/stdlib/strings/totitle
/flux/v0.x/stdlib/strings/toupper
/flux/v0.x/stdlib/strings/title
0.18.0

The strings.toLower() function converts a string to lowercase.

Output data type: String

import "strings"

strings.toLower(v: "KOALA")

// returns "koala"

Parameters

v

The string value to convert.

Examples

Convert all values of a column to lower case
import "strings"

data
    |> map(fn: (r) => ({r with exclamation: strings.toLower(v: r.exclamation)}))