<Condition> / Element reference
Condition
The Condition element in IDML: where it appears (Resources/Styles), its 4 attributes, their values, and how real documents use them.
Definition
A conditional-text condition; text that applies it is shown or hidden with the condition's Visible flag.
- Lives in
Resources/Styles1- Frequency
- In 1 of the 305 documents of the census (0.3%), 2026-10-12
- Attributes
- 4 observed, 3 of them vary between documents
- Discussed in
- Conditions and condition sets, Conditional text, Glossary, Visibility, Conflict resolution and Resource parts
Structure
Relationships
Inside
RootConditionalTextGroup1
Contains
no elements
Condition sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Default | Seen in |
|---|---|---|---|---|
| IndicatorMethod# How text with this condition is marked on screen while editing (InDesign writes UseHighlight); it does not affect output. | keyword | any | — | 100% |
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | keyword | any | — | 100% varies in 1 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | reference | any | — | 100% varies in 1 |
| Visible# When false, text with this condition is hidden: it stays in the story but is neither shown nor printed. | boolean | any | true | 100% varies in 1 |
Condition (census of 2026-10-12, 305 documents). Seen in is the share of the 1 documents with a Condition that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Visualization

Condition in the example “One run under a visible and a hidden condition”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Visibility.Behavior
A run that names two conditions, one visible and one hidden, isolates the multi-condition rule; control runs show each condition on its own.
Shown, with its source and a live render, in Visibility.
A Condition is defined in designmap.xml as a direct child of Document; a run names it in AppliedConditions, and while the condition is hidden the run is not printed.
Shown, with its source and a live render, in Conditions and condition sets.
Evidence
- Observed
- In 1 of 305 documents (0.3%):
Resources/Styles1. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
- InDesign checks
- One run under a visible and a hidden condition: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- A run hidden by a condition: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
Paged support
What Paged, one implementation of the format, does with Condition. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged 6347aa9, read 2026-11-24; render from the capability record exported 2026-11-24.
- Parse
- Reads 4 of the 4 attributes
- Render
- 2 features of the capability record name this element (below); examples compared with InDesign below
- Edit
- 1 attribute map to a scriptable path for
paged.set - Write
- Writes 4 of the 4 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| IndicatorMethod | readsstyles.rs:1215 | — | writesnavigation.rs:558 |
| Name | readsstyles.rs:1213 | — | writesnavigation.rs:556 |
| Self | readsstyles.rs:1212 | — | writesnavigation.rs:555 |
| Visible | readsstyles.rs:1214 | visible | writesnavigation.rs:563 |
In the capability record
| Feature | Parse | Render | Edit | Evidence |
|---|---|---|---|---|
| Condition visibility ops (SetConditionVisible, ActivateConditionSet) shipped | — | — | yes | All linked evidence is passing (3 tests current) |
| Condition visibility filtering (hidden runs pre-layout) shipped | yes | yes | — | All linked evidence is passing (6 tests current) |
Rendered against InDesign
- One run under a visible and a hidden condition: mean colour difference 0.037 ΔE, structural similarity 0.996, same fonts on both sides (checked 2026-10-11).
- A run hidden by a condition: mean colour difference 0.035 ΔE, structural similarity 0.997, same fonts on both sides (checked 2026-10-11).
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names Condition.
CharacterStyleGroup
The CharacterStyleGroup element in IDML: where it appears (Resources/Styles), its 2 attributes, their values, and how real documents use them.
ConditionSet
The ConditionSet element in IDML: where it appears (Resources/Styles), its 3 attributes, their values, and how real documents use them.