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

## [](#isodd1)isOdd(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 ] }
```