Home > Process Behavior Procedures and Reference > Process Behavior Reference > Expression Formats

Expression Formats

Expression Format

Operation

attribute = statement

where attribute is any defined attribute (including task durations) and statement is a combination of attributes, functions, numbers, type members, and mathematical or logical operators. For example, the following expression:

priority = trunc(random()*5,0)

uses the system defined random and trunc functions to set a transaction priority to an integer value between 0 and 5. You can use any system- or user-defined function in an expression.

Sets an attribute

statement

For example, the statement S.ActivityCost on the Properties dialog box - Task page - Step tab in the Cost field sets the task cost of an activity to the value of a scenario attribute called ActivityCost, which is initialized in the Attributes dialog box (see Attributes).

Specifies a value, such as Task Cost

Related Topics

Expressions