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

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