Contact Us 1-800-596-4880

isLowerCase

isLowerCase(String): Boolean

Checks if the text contains only lowercase characters.

Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later.

Parameters

Name Description

text

The input string.

Example

This example shows how isNumeric behaves with different inputs and sizes.

Source

%dw 2.0
import isLowerCase from dw::core::Strings
output application/json
---
{
  "a": isLowerCase(null),
  "b": isLowerCase(""),
  "c": isLowerCase("  "),
  "d": isLowerCase("abc"),
  "e": isLowerCase("aBC"),
  "f": isLowerCase("a c"),
  "g": isLowerCase("a1c"),
  "h": isLowerCase("a/c")
}

Output

{
  "a": false,
  "b": false,
  "c": false,
  "d": true,
  "e": false,
  "f": false,
  "g": false,
  "h": false
}

isLowerCase(Null): Boolean

Helper function that enables isLowerCase to work with a null value.