Conditions

A collection of conditions for conditional text.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Condition [] (index:Number)

Returns the Condition with the specified index.

Parameter

Type

Description

index

Number

The index.

Condition add (withProperties:Object)

Creates a new Condition.

Parameter

Type

Description

withProperties

Object

Initial values for properties of the new Condition (Optional)

Condition anyItem ()

Returns any Condition in the collection.

Number count ()

Displays the number of elements in the Condition.

Condition everyItem ()

Returns every Condition in the collection.

Condition firstItem ()

Returns the first Condition in the collection.

Condition item (index:Varies LongInteger String)

Returns the Condition with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

Condition itemByID (id:Number)

Returns the Condition with the specified ID.

Parameter

Type

Description

id

Number

The ID.

Condition itemByName (name:String)

Returns the Condition with the specified name.

Parameter

Type

Description

name

String

The name.

Condition itemByRange (from:Varies Condition LongInteger String, to:Varies Condition LongInteger String)

Returns the Conditions within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last Condition in the collection.

Condition middleItem ()

Returns the middle Condition in the collection.

Condition nextItem (obj:Condition)

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

Parameter

Type

Description

obj

Condition

The Condition whose index comes before the desired Condition.

Condition previousItem (obj:Condition)

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

Parameter

Type

Description

obj

Condition

The index of the Condition that follows the desired Condition.

String toSource ()

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

Object of

Application.conditions

Document.conditions