InDesign Server2025
API 20.5.0.49
Collection of ConditionSet

ConditionSets

A collection of condition sets for conditional text.

Properties

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

Methods

→ ConditionSet

Returns the ConditionSet with the specified index.

index Number The index.
→ ConditionSet

Creates a new ConditionSet.

withProperties? Object Initial values for properties of the new ConditionSet
→ ConditionSet

Returns any ConditionSet in the collection.

→ Number

Displays the number of elements in the ConditionSet.

→ ConditionSet[]

Returns every ConditionSet in the collection.

→ ConditionSet

Returns the first ConditionSet in the collection.

→ ConditionSet

Returns the ConditionSet with the specified index or name.

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

Returns the ConditionSet with the specified ID.

id Number The ID.
→ ConditionSet

Returns the ConditionSet with the specified name.

name String The name.
→ ConditionSet[]

Returns the ConditionSets within the specified range.

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

Returns the last ConditionSet in the collection.

→ ConditionSet

Returns the middle ConditionSet in the collection.

→ ConditionSet

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

obj ConditionSet The ConditionSet whose index comes before the desired ConditionSet.
→ ConditionSet

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

obj ConditionSet The index of the ConditionSet that follows the desired ConditionSet.
→ String

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

Object of 2

Properties elsewhere that hold a ConditionSets.