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

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