docs-v2/content/v2.0/reference/flux/functions/strings/isupper.md

706 B

title description menu weight related
strings.isUpper() function The strings.isUpper() function tests if a single character string is uppercase.
v2_0_ref
name parent
strings.isUpper Strings
301
/v2.0/reference/flux/functions/strings/islower

The strings.isUpper() function tests if a single character string is uppercase.

Output data type: Boolean

import "strings"

strings.isUpper(v: "A")

// returns true

Parameters

v

The single-character string value to test.

Data type: String

Examples

Filter by columns with single-letter uppercase values
import "strings"

data
  |> filter(fn: (r) => strings.isUpper(v: r.host))