---
schema_version: "1"
id: a28bc5333bec3d7dee4d5f03df1d8209b212782877c1492abe5ab5964503a426
title: isAttributeType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-tree-functions-isattributetype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-tree-functions-isattributetype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 64b1726cbd12cf7fc405a9171ee006c163eb5ff51717bac994d500d1889a0b51
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# isAttributeType

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

## isAttributeType(path: Path): Boolean

Returns `true` if the provided `Path` value is an `ATTRIBUTE_TYPE` expression.

_Introduced in DataWeave version 2.4.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>path</code></p></td><td><p>The <code>Path</code> value to validate.</p></td></tr></tbody></table>

### Example

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

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Tree
output application/json
---
{
  a: isAttributeType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
                      {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}]),
  b: isAttributeType([{kind: OBJECT_TYPE, selector: "user", namespace: null},
                      {kind: ARRAY_TYPE, selector: "name", namespace: null}]),
  c: isAttributeType([{kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}])
}
```

#### Output

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