---
schema_version: "1"
id: f6f63936e729b0c591de11aaa4122859b4d5a03321a320890a13034a2084619b
title: isEven
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-core-functions-iseven.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-iseven
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4ffb37ed9c2d98e9c806dc17ff6573710933e56fadd114b782716c97eca4c9b9
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# isEven

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

## isEven(number: Number): Boolean

Returns `true` if the number or numeric result of a mathematical operation is even, `false` if not.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>number</code></p></td><td><p>The number to evaluate.</p></td></tr></tbody></table>

### Example

This example indicates whether the numbers and result of an operation are even.

#### Source

```DataWeave
%dw 2.0
output  application/json
---
{ "isEven" : [ isEven(0), isEven(1), isEven(1+1) ] }
```

#### Output

```JSON
{ "isEven" : [ true, false, true ] }
```
