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

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