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

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