---
schema_version: "1"
id: 5c2b6abcf8b1a3d66f8b4a213c0fe31e68c42a431e13dce6b8f09ffedaaa8cf9
title: evaluateCompatibilityFlag
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-core-functions-evaluatecompatibilityflag.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-core-functions-evaluatecompatibilityflag
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 70e739c2fb0dc44bda46357839f15ef45d43d5c04ae1e0cdad42ab4fee9b2117
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

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