Has_Document_Attribute
Overview
Use this condition to check whether the current document has a specific XML attribute with a specific value. A typical use case is branching on a format flag set by priint:planner document parameters.
How It Works
Reads the named attribute from the document's XML structure. Compares the value with an exact string match. Returns false if the attribute does not exist on the document.
Reference
| # | Name | Type | Default | Description |
|---|---|---|---|---|
| 1 | Attribute Key | String | - | Name of the XML attribute, as shown in the InDesign Desktop document structure |
| 2 | Attribute Value | String | - | Expected value (exact match, case-sensitive) |
| 3 | (unused) | |||
| 4 | (unused) |