Use this form to construct an expression that will be evaluated and then assigned to the selected variable. You can do this either on the or tab.

Navigating the form

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

Tabs

Tab

Description

Construct the expression as a set of expression lines.

Write the expression as an X++ function that returns the desired value. If you do this, the expression entered on the tab, if any, are not used.

Buttons

Button

Description

Test the expression syntax when you have finished editing it.

Transfer an expression from the tab to the tab. In other words, you can start with a line-based expression and then transfer it to X++ code later if you find that this is more convenient.

Fields

Field

Description

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 for the logical expression you are building. Depending on the choice made in the field, the operand can be either a fixed value or one of the product model's variables.

If the field is set to , you can obtain a list of available variables from the drop-down list in the field.

Note Note

If you specify a variable group that is an array, you must also specify the array index in the field.


Specify the array index if you selected in the field that the operand on this line is a variable, and if the variable you selected in the field is an array group.

Note Note

The array index is the position number of a specific array element—the one that is relevant for the current expression.


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

* /

multiplication, division

+ -

plus, minus

> < >= <=

greater than, less than, greater or equal, less or equal

= !=

equal, not equal

Select variables to use when you create an X++ expression in the field.

If the variable selected in the field belongs to the array group, type its number in the group here.

Type the description of the variable selected in the field.

In this field, you can write an X++ code that returns the value that you want to assign to a variable. For an explanation of X++ syntax, see the Microsoft Dynamics AX Developer's Guide.