---
schema_version: "1"
id: 11b8fed4a0ebfbbb18c1fedb0d34360c0f31b5d1bd426a1d2599502ee3c7d2f7
title: evaluateCompatibilityFlag
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-core-functions-evaluatecompatibilityflag.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-core-functions-evaluatecompatibilityflag
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cc5ac7756da435d5868f1b734527685bc8bf9b0863ff2e3ec098e805b3870a61
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# evaluateCompatibilityFlag

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

## evaluateCompatibilityFlag(flag: String): Boolean

Returns the value of the compatibility flag with the specified name.

_Introduced in DataWeave version 2.5.0._

### Parameters

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><p><code>flag</code></p></td><td><p>String</p></td><td><p>The name of the compatibility flag to evaluate.</p></td></tr></tbody></table>

### Example

This example gets the `com.mulesoft.dw.xml_reader.honourMixedContentStructure` compatibility flag
value in the current DataWeave version.

#### Source

```DataWeave
%dw 2.0
output application/json
---
{
  "com.mulesoft.dw.xml_reader.honourMixedContentStructure": evaluateCompatibilityFlag("com.mulesoft.dw.xml_reader.honourMixedContentStructure")
}
```

#### Output

```Json
{
  "com.mulesoft.dw.xml_reader.honourMixedContentStructure": true
}
```
