Build an expression
- Last UpdatedMar 01, 2024
- 2 minute read
Many items in Studio have an expression property and require you to build expressions. This topic describes the basic steps to follow when you build expressions.
To build an expression
-
In the Properties pane, next to the Expression property, click Browse. The Expression Editor appears.

-
Switch to the Expression tab if it is not already the active tab. If you build a new expression, the Expression Edit box is blank. If you edit an existing expression, the expression appears in the Expression Edit box.
-
As you build or edit the expression, place the insertion point where you want to add a property, parameter, or C# operator.
-
In the Select Property pane, double-click the property that you want to add. The property appears in the expression. You can also type the expression.
-
In the Parameters pane, double-click the parameter that you want to insert.
-
On the Expression toolbar, click the appropriate button to add a mathematical or logical operator, for example, +, -, *, /. You can also type any valid C# operator.
Select the Compile checkbox
-
Select the Compile check box to make the expression available for AVEVA™ Production Management to compile.
Select the Dependencies
-
Switch to the Dependencies tab.

-
In the Select Property pane, double-click the properties that you want the expression to depend on to trigger its evaluation. The properties appear in the Dependencies List box.
-
Select a dependency or event in the list box and then click Remove to remove a dependency from the Dependencies List box.
Finish the expression
-
Click OK.