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

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