<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/property-path",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "{property-path}"
}
-->

# {property-path}

Compares a value from a JSON file to a specified value to find out if they are equal.

## Overview

The `{property-path}` query is used with data binding to determine whether one value
is equal to another. Bind a value from your JSON file to a variable associated with
the query. If the `property-path` is equal to the designated value, the element is
processed.

For example, you want to change the title of a movie if the user has never watched
it. Add a `specialize` element that contains a `{property-path}` query. If the `timesPlayed`
variable is equal to 0, color the title white.

```xml
<specialize state="({timesPlayed}:0)">
    <title tag="title" style="color:white"/>
</specialize>
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)