---
schema_version: "1"
id: 78d4fa513dc3fd909f75067910eca6f93ad423300ef14a9f9a12d1c9bd0db751
title: isEven
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-core-functions-iseven.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-core-functions-iseven
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 99137e982b5e2737294f6737480354f830f5d049fa2152e344cebcbbd9d6fb36
description: MuleSoft Documentation Site
release: "2.5"
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 ] }
```