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

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