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

# 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 ] }
```
