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

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