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

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