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

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