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

# isUpperCase

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

## isUpperCase(String): Boolean

Checks if the `text` contains only uppercase characters.

_Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later._

### 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 `isNumeric` 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(Null): Boolean

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