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

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