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

# isOdd

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

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