TextConditions

A collection of conditions for conditional text.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
[withProperties])
 → Condition
anyItem(
)
 → Condition
count(
)
 → number
everyItem(
)
 → Condition
firstItem(
)
 → Condition
item(
index)
 → Condition
itemByID(
id)
 → Condition
itemByName(
name)
 → Condition
itemByRange(
from, to)
 → Condition
lastItem(
)
 → Condition
nextItem(
obj)
 → Condition
previousItem(
obj)
 → Condition
toSource(
)
 → string
add(
[withProperties])
 → Condition
Creates a new Condition.
withProperties Object Initial values for properties of the new Condition (Optional)
anyItem(
)
 → Condition
Returns any Condition in the collection.
count(
)
 → number
Displays the number of elements in the Condition.
everyItem(
)
 → Condition
Returns every Condition in the collection.
firstItem(
)
 → Condition
Returns the first Condition in the collection.
item(
index)
 → Condition
Returns the Condition with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → Condition
Returns the Condition with the specified ID.
id number The ID.
itemByName(
name)
 → Condition
Returns the Condition with the specified name.
name string The name.
itemByRange(
from, to)
 → Condition
Returns the Conditions within the specified range.
from The Condition, index, or name at the beginning of the range. Can accept: Condition, Long Integer or String.
to The Condition, index, or name at the end of the range. Can accept: Condition, Long Integer or String.
lastItem(
)
 → Condition
Returns the last Condition in the collection.
middleItem(
)
 → Condition
Returns the middle Condition in the collection.
nextItem(
obj)
 → Condition
Returns the Condition whose index follows the specified Condition in the collection.
obj Condition The Condition whose index comes before the desired Condition.
previousItem(
obj)
 → Condition
Returns the Condition with the index previous to the specified index.
obj Condition The index of the Condition that follows the desired Condition.
toSource(
)
 → string
Generates a string which, if executed, will return the Condition.