---
schema_version: "1"
id: 81752e17e1a2bbe421779380081a72e20c56e1928d1f3c1f4ad4f807b9081229
title: someCharacter
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-strings-functions-somecharacter.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-strings-functions-somecharacter
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e5cb72ecb8d3cf4c048869250e80057bf76e733ab809995b39e53a0c96116ae5
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# someCharacter

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

## someCharacter(text: String, condition: (character: String) -> Boolean): Boolean

Checks whether a condition is valid for at least one of the characters or blank spaces in a string.

_Introduced in DataWeave version 2.4.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 string to check.</p></td></tr><tr><td><p><code>condition</code></p></td><td><p>Expression that iterates through the characters and spaces in the string and returns a Boolean value.</p></td></tr></tbody></table>

### Example

This example determines whether a string has any uppercase characters.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
"someCharacter" someCharacter isUpperCase($)
```

#### Output

```Json
true
```

## someCharacter(text: Null, condition: (character: Nothing) -> Any): false

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

_Introduced in DataWeave version 2.4.0._
