Add (Assignment)


Description

Add a node-to-state assignment to an Assignment collection.

Syntax

anAssignment.Add(indexNode, indexState)

 

Parameter

Description

anAssignment

an Assignment collection.

indexNode

An integer, or a string, or a Node object specifying the Node object to add to the assignment. The zero-based integer is a index into the ModelNodes collection. Likewise, the Node object must be in the ModelNodes collection and the string must be the name of a Node object in the ModelNodes collection.

indexState

An integer, or a string, or a State object specifying the State object to which the Node object is to be assigned. The State object must be in the Node object's States collection.

Return Value

The State object specified by indexState.

Applies To

Assignment