---
schema_version: "1"
id: df230de4197139fb324985408a1f8bb4a30f6c41edf067be15cccef12f7fcfdd
title: isUpperCase
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-strings-functions-isuppercase.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-strings-functions-isuppercase
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ccfc9e2f13cf4279a228bf9814fb2aefb2fa43ef448ac864d7a1ccaaee9c1d3b
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# isUpperCase

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isUpperCase(text: String): Boolean

Checks if the `text` contains only uppercase characters.

_Introduced in DataWeave version 2.2.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>text</code></p></td><td><p>The input string.</p></td></tr></tbody></table>

### Example

This example shows how `isUpperCase` behaves with different inputs and sizes.

#### Source

```DataWeave
%dw 2.0
import isUpperCase from dw::core::Strings
output application/json
---
{
  "a": isUpperCase(null),
  "b": isUpperCase(""),
  "c": isUpperCase("  "),
  "d": isUpperCase("ABC"),
  "e": isUpperCase("aBC"),
  "f": isUpperCase("A C"),
  "g": isUpperCase("A1C"),
  "h": isUpperCase("A/C")
}
```

#### Output

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

## isUpperCase(text: Null): Boolean

Helper function that enables `isUpperCase` to work with a `null` value.

_Introduced in DataWeave version 2.2.0._
