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

# isEven

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

## isEven(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 ] }
```
