---
schema_version: "1"
id: e5f1e7f7806de9a0cd40dd76279f3056fdf4c9e6c58cb2c0468d378762a4df6a
title: isBooleanType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-types-functions-isbooleantype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-types-functions-isbooleantype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5aa99d806adb9aa7240e4999e3edc4f2222d30220038590d4aee780359454b15
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# isBooleanType

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

## isBooleanType(Type): Boolean

Returns `true` if the input is the Boolean type.

_Introduced in DataWeave 2.3.0. Supported by Mule 4.3 and later._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p>t</p></td><td><p>The type to check.</p></td></tr></tbody></table>

### Example

This example shows how `isBooleanType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Types
type ABoolean = Boolean
output application/json
---
{
   a: isBooleanType(ABoolean),
   b: isBooleanType(Boolean),
   c: isBooleanType(String),
}
```

#### Output

```Json
{
  "a": true,
  "b": true,
  "c": false
}
```
