---
schema_version: "1"
id: 329af8be482c5df759bd6e043efde8947ad371dd02a3aa2386b3063aa571e9ca
title: isEven
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-core-functions-iseven.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-core-functions-iseven
source_site: docs.mulesoft.com
content_type: documentation
content_hash: bf17a98cfe2fec1e3a9803a328205eaadb6b36585c9233a8f28fc03e86f8a887
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# isEven

## [](#iseven1)isEven(number: Number): Boolean

数値または算術演算の数値結果が偶数の場合は ​`true`​ を返し、それ以外の場合は ​`false`​ を返します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価する数値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、数値および演算の結果が偶数かどうかを示します。

#### [](#ソース)ソース

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

#### [](#出力)出力

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