---
schema_version: "1"
id: 805221740998a108b5fa8facf586b97d9e1e050fde710d21648340a72eb668f8
title: isOdd
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-core-functions-isodd.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-core-functions-isodd
source_site: docs.mulesoft.com
content_type: documentation
content_hash: db756ae430fbcb3ea73e9b48a538946a939678acf049a0ee6725dada17cc9e88
description: MuleSoft Documentation Site
release: "2.4"
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 ] }
```