Home > Process Behavior Procedures and Reference > Expressions

Expressions

An expression is an arithmetic or logical statement used to assign a value. Any place in your process model where you need to set or change a value, you can use an expression.

Task

Procedure

Define and initialize a scenario attribute as an expression

  1. On the Model toolbar, click the model_attributes00015.bmptool.
    or
    On the Model menu, choose Attributes.

  2. In the Define Attributes dialog box, click the Add button.

  3. In the Add New Attribute dialog box, define the attribute name, type, and choose Scenario location.

  4. Click the Expression option and click expressionbuildericon00016.bmp in the expression field.

  5. Use the Expression Builder paste keys to add attributes, functions, members, and operators to your expression.

Modify an attribute’s expression

  1. On the Model menu, choose Attributes.

  2. Select an attribute name in the existing Attributes list.

  3. Click the Modify button.

  4. If the attribute is not already an expression, click expressionbuildericon00017.bmp in the expression field and use the Expression Builder paste keys to add attributes, functions, members, and operators to define or modify your expression.

Use a function in an expression

  1. Click expressionbuildericon00018.bmp to open the Expression Builder.

  2. The Expression Builder is available from several points within iGrafx. One access point is through the Define Attributes dialog box. For example, you may choose to click the Attributes toolbar button, then add a new attribute that is initialized with an expression.

  3. Click the model_functions00019.bmp button.

  4. In the Paste Function dialog box, click the String category, then click to select a function name.

  5. Select the Paste Argument(s) check box and click OK.

The function appears in the Expression Builder.

You can also use a CustomData function call to retrieve the value of a custom data definition of an activity. For more information, see the CustomData function.

Related Topics

Expression Formats

Expression Operators

Expression Order of Evaluation

 

Overview Topics

Expressions

Expression Builder

Strings, Functions, and Arrays in Expressions