Conditions
A collection of conditions for conditional text.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
Condition [] (index:Number)
Returns the Condition with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
Condition add (withProperties:Object)
Creates a new Condition.
Parameter |
Type |
Description |
---|---|---|
withProperties |
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 |
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 |
The ID. |
Condition itemByName (name:String)
Returns the Condition with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
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 |
LongInteger |
The Condition, index, or name at the beginning of the range. Can accept: Condition, Long Integer or String. |
to |
LongInteger |
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 |
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 |
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