InDesign2026
API 21.5.1.73
Collection of Condition

Conditions

A collection of conditions for conditional text.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

Condition

Returns the Condition with the specified index.

index Number The index.
Condition

Creates a new Condition.

withProperties? Object Initial values for properties of the new Condition
Condition

Returns any Condition in the collection.

Number

Displays the number of elements in the Condition.

Condition[]

Returns every Condition in the collection.

Condition

Returns the first Condition in the collection.

Condition

Returns the Condition with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
Condition

Returns the Condition with the specified ID.

id Number The ID.
Condition

Returns the Condition with the specified name.

name String The name.
Condition[]

Returns the Conditions within the specified range.

from Condition | LongInteger | String The Condition, index, or name at the beginning of the range. Can accept: Condition, Long Integer or String.
to Condition | LongInteger | String The Condition, index, or name at the end of the range. Can accept: Condition, Long Integer or String.
Condition

Returns the last Condition in the collection.

Condition

Returns the middle Condition in the collection.

Condition

Returns the Condition whose index follows the specified Condition in the collection.

obj Condition The Condition whose index comes before the desired Condition.
Condition

Returns the Condition with the index previous to the specified index.

obj Condition The index of the Condition that follows the desired Condition.
String

Generates a string which, if executed, will return the Condition.

Object of 6

Properties elsewhere that hold a Conditions.