Skip to main content

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​

#NameTypeDefaultDescription
1Attribute KeyString-Name of the XML attribute, as shown in the InDesign Desktop document structure
2Attribute ValueString-Expected value (exact match, case-sensitive)
3(unused)
4(unused)