---
schema_version: "1"
id: 2a14d58a101fc0e64357ee7973e63e2dd35f52fae22c782e1a9a9d5235e95840
title: isOdd
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-core-functions-isodd.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-core-functions-isodd
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d49e0628556da277fe8fe5a2ce60dcadce28e54b71ca038f16e9fdba98ec3800
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# isOdd

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isOdd(number: Number): Boolean

Returns `true` if the number or numeric result of a mathematical operation is odd, `false` if not.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>number</code></p></td><td><p>A number to evaluate.</p></td></tr></tbody></table>

### Example

This example indicates whether the numbers are odd.

#### Source

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

#### Output

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