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

# 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._
