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

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