---
schema_version: "1"
id: c38c90b78c7a0bbf4a03e50bf666cadc80d2b010f593bf028206e2faf8d43818
title: evaluateCompatibilityFlag
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-core-functions-evaluatecompatibilityflag.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-core-functions-evaluatecompatibilityflag
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ae88122724fd0e2872add30c3fb9a745f1b1b2dd705c35b32c1599226c8e8e85
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# evaluateCompatibilityFlag

## [](#evaluatecompatibilityflag1)evaluateCompatibilityFlag(flag: String): Boolean

指定された名前の互換性フラグの値を返します。

_DataWeave バージョン 2.5.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 60%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">型</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>flag (フラグ)</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価する互換性フラグの名前。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、現在の DataWeave バージョンで ​`com.mulesoft.dw.xml_reader.honourMixedContentStructure`​ 互換性フラグの値を取得します。

#### [](#ソース)ソース

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

#### [](#出力)出力

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