---
schema_version: "1"
id: dce6e6dba026e24fc332311473ce9f7c8ae3f6d0e287d92dc5f9a4407f68f274
title: isOdd
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.6/dw-core-functions-isodd.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.6/dw-core-functions-isodd
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ef3bcde9f478dabc303be758470ef62352f781a707b2b1347772faf9df2a2b38
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
# isOdd

## [](#isodd1)isOdd(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
---
{ "isOdd" : [ isOdd(0), isOdd(1), isOdd(2+2) ] }
```

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

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