Use this form to perform simple calculations in the modeling tree. The calculation result is stored in one of the product model's variables.

At the top of the form, you specify the variable that should receive a new value from the calculation. At the bottom, on the tab, you create an expression for the value calculation.

Navigating the form

The following tables provide descriptions for the controls in this form.

Tabs

Tab

Description

Specify an expression that yields the value that should be assigned to the selected variable. The expression is built on several lines, each of which contains an operand and an operator.

Buttons

Button

Description

Check the code syntax.

Fields

Field

Description

Type a short description of what this simple node does.

Select the variable that should receive the calculation result.

Note Note

If the receiving variable is an array, you should select the specific array element you want in this field. Unlike many other variable selection fields in the Product Builder, there is no special field here for the array index.


Select whether the operand specified on this line (that is, the content of the field) is a fixed value or a variable.

Specify an operand in the expression you are building. Depending on the choice made in the field, the operand can be either a fixed value or one of your product model's variables. If you specify a variable that is an array, please note that you need to select the specific array element you want, not just the name of the variable.

When the field is set to , you can get a list of available variables (and array elements) by pressing the arrow button next to the field.

Note Note

When the field is set to , you need to consider the data type of the values you enter. Text values must be enclosed in single quotes (') - otherwise the compiler interprets the text as a variable name, and you get a compilation error when the rule is validated. Contrary to this, numerical values should not be enclosed in quotes.


Specify an operator that connects the current line with the next line - to form an expression (or part of a larger expression). The following operators are available (listed in order of operator precedence):

*

multiplication

/

division

+

plus

-

minus

>

greater than

<

less than

>=

greater or equal

<=

less or equal

=

equal

!=

not equal

and

logical and

or

logical or

See Also